|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.service.catalogview.impl.SearchServiceImpl
public class SearchServiceImpl
Represents a default implementation of SearchService
.
Constructor Summary | |
---|---|
SearchServiceImpl()
|
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 |
setCategoryService(CategoryService categoryService)
Sets the CategoryService . |
void |
setIndexSearchService(IndexSearchService indexSearchService)
Sets the index search service. |
void |
setProductRetrieveStrategy(ProductRetrieveStrategy productRetrieveStrategy)
Sets the ProductRetrieveStrategy . |
void |
setSfSearchLogService(SfSearchLogService sfSearchLogService)
Sets the SfSearchLogService. |
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public SearchServiceImpl()
Method Detail |
---|
public SfSearchLogService getSfSearchLogService()
getSfSearchLogService
in interface SearchService
public 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.
search
in interface SearchService
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
instancepublic void setCategoryService(CategoryService categoryService)
CategoryService
.
categoryService
- the CategoryService
to setpublic void setIndexSearchService(IndexSearchService indexSearchService)
indexSearchService
- the index search service.public void setProductRetrieveStrategy(ProductRetrieveStrategy productRetrieveStrategy)
ProductRetrieveStrategy
.
productRetrieveStrategy
- the product retrieve strategypublic void setSfSearchLogService(SfSearchLogService sfSearchLogService)
setSfSearchLogService
in interface SearchService
sfSearchLogService
- the SfSearchLogService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |