|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchService
Provide searching service.
Method Summary | |
---|---|
SfSearchLogService |
getSfSearchLogService()
Gets the SfSearchLogService. |
SearchResult |
search(SearchRequest searchRequest,
CatalogViewResultHistory previousSearchResultHistory,
ShoppingCart shoppingCart,
ProductLoadTuner productLoadTuner)
Perform searching based on the given search request and returns the search result. |
void |
setSfSearchLogService(SfSearchLogService sfSearchLogService)
Sets the SfSearchLogService. |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
SfSearchLogService getSfSearchLogService()
SearchResult search(SearchRequest searchRequest, CatalogViewResultHistory previousSearchResultHistory, ShoppingCart shoppingCart, ProductLoadTuner productLoadTuner)
By giving the previous search result history, you may get response quicker. If you don't have it, give a null
. It doesn't
affect search result.
By giving a shopping cart, promotion rules will be applied to the returned products.
By giving the product load tuner, you can fine control what data to be loaded for each product. It is used to improve performance.
searchRequest
- the search requestpreviousSearchResultHistory
- the previous search results, give null
if you don't have itshoppingCart
- the shopping cart, give null
if you don't have itproductLoadTuner
- the product load tuner, give null
to populate all data
SearchResult
instancevoid setSfSearchLogService(SfSearchLogService sfSearchLogService)
sfSearchLogService
- the SfSearchLogService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |