Interface SearchFacade<ITEM,STATE extends SearchStateData>

Type Parameters:
ITEM - Type of item to be searched.
STATE - Type of search state depending containing the information about the query.
All Known Implementing Classes:
DefaultB2BFlexibleSearchProductSearchFacade, DefaultB2BSolrProductSearchFacade

public interface SearchFacade<ITEM,STATE extends SearchStateData>
Defines the search funtionality for different types of data objects, using the concept of pagination and states.
  • Method Details

    • search

      SearchPageData<ITEM> search(STATE searchState, PageableData pageableData)
      Searches for the ITEM's based on the search state. The query object allows more complex queries using facet selection. The SearchStateData must have been obtained from the results of a call to #textSearch(String).
      Parameters:
      searchState - the search query object
      pageableData - the page to return
      Returns:
      the search results
    • autocomplete

      List<AutocompleteSuggestionData> autocomplete(STATE searchState)
      Get the auto complete suggestions for the provided input.
      Parameters:
      searchState - the search query object
      Returns:
      a list of suggested search terms