Interface ProductSearchFacade<ITEM extends ProductData>
- Type Parameters:
ITEM- The type of the product result items
- All Known Subinterfaces:
VendorProductSearchFacade
- All Known Implementing Classes:
DefaultB2BSolrProductSearchFacade,DefaultSolrProductSearchFacade,DefaultVendorProductSearchFacade
public interface ProductSearchFacade<ITEM extends ProductData>
Product search facade interface.
Used to retrieve products of type
ProductData (or subclasses of).-
Method Summary
Modifier and TypeMethodDescriptioncategorySearch(String categoryCode) Initiate a new search in category.categorySearch(String categoryCode, SearchStateData searchState, PageableData pageableData) Refine an exiting search.categorySearch(String categoryCode, SearchQueryContext searchQueryContext) Initiate a new search in category in a search query context.getAutocompleteSuggestions(String input) Get the auto complete suggestions for the provided input.textSearch(SearchStateData searchState, PageableData pageableData) Refine an exiting search.textSearch(String text) Initiate a new search using simple free text query.textSearch(String text, SearchQueryContext searchQueryContext) Initiate a new search using simple free text query in a search query context.
-
Method Details
-
textSearch
Initiate a new search using simple free text query.- Parameters:
text- the search text- Returns:
- the search results
-
textSearch
ProductSearchPageData<SearchStateData,ITEM> textSearch(String text, SearchQueryContext searchQueryContext) Initiate a new search using simple free text query in a search query context.- Parameters:
text- the search textsearchQueryContext- search query context- Returns:
- the search results
-
textSearch
ProductSearchPageData<SearchStateData,ITEM> textSearch(SearchStateData searchState, PageableData pageableData) Refine an exiting search. The query object allows more complex queries using facet selection. The SearchStateData must have been obtained from the results of a call totextSearch(String).- Parameters:
searchState- the search query objectpageableData- the page to return- Returns:
- the search results
-
categorySearch
ProductCategorySearchPageData<SearchStateData,ITEM, categorySearchCategoryData> (String categoryCode) Initiate a new search in category.- Parameters:
categoryCode- the category to search in- Returns:
- the search results
-
categorySearch
ProductCategorySearchPageData<SearchStateData,ITEM, categorySearchCategoryData> (String categoryCode, SearchQueryContext searchQueryContext) Initiate a new search in category in a search query context.- Parameters:
categoryCode- the category to search insearchQueryContext- search query context- Returns:
- the search results
-
categorySearch
ProductCategorySearchPageData<SearchStateData,ITEM, categorySearchCategoryData> (String categoryCode, SearchStateData searchState, PageableData pageableData) Refine an exiting search. The query object allows more complex queries using facet selection. The SearchStateData must have been obtained from the results of a call tocategorySearch(String).- Parameters:
categoryCode- the category to search insearchState- the search query objectpageableData- the page to return- Returns:
- the search results
-
getAutocompleteSuggestions
Get the auto complete suggestions for the provided input.- Parameters:
input- the user's input- Returns:
- a list of suggested search terms
-