Interface CatalogSearchProvider<T extends Product>
-
- Type Parameters:
T- The type of the results expected in theSearchResponse. Should extendProduct.
- All Known Implementing Classes:
ExternalCatalogSearchProvider
public interface CatalogSearchProvider<T extends Product>Provider for interfacing with operations around catalog search. Typically utilizesWebClientto make requests to an external REST API.- Author:
- Nathan Moore (nathandmoore)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SearchResponse<T>getSearchResults(CatalogSearchRequest request)Performs a search for the provided request.TypeAheadResponsegetSuggestions(CatalogTypeAheadRequest request)Gets suggestions for a search typeahead component based on the request.
-
-
-
Method Detail
-
getSearchResults
SearchResponse<T> getSearchResults(CatalogSearchRequest request)
Performs a search for the provided request.- Parameters:
request- All of the relevant information to be used to retrieve search results.- Returns:
- The
SearchResponsewith results for the request.
-
getSuggestions
TypeAheadResponse getSuggestions(CatalogTypeAheadRequest request)
Gets suggestions for a search typeahead component based on the request.- Parameters:
request- All of the relevant information to be used to retrieve type-ahead suggestions.- Returns:
- The
TypeAheadResponsewith the results for the request.
-
-