Interface CatalogSearchProvider<T extends Product>

  • Type Parameters:
    T - The type of the results expected in the SearchResponse. Should extend Product.
    All Known Implementing Classes:
    ExternalCatalogSearchProvider

    public interface CatalogSearchProvider<T extends Product>
    Provider for interfacing with operations around catalog search. Typically utilizes WebClient to make requests to an external REST API.
    Author:
    Nathan Moore (nathandmoore)
    • 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 SearchResponse with 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 TypeAheadResponse with the results for the request.