Interface SearchProvider

All Known Implementing Classes:
AbstractSearchProvider, CmsSearchProvider, GenericQuerySearchProvider, ProductPerspectiveQueryProvider

public interface SearchProvider
The interface SearchProvider. Base interface to implement for simple searches. Only parameter to set is required root type of search result. The interface also declares one method that takes Query as an argument and returns search result.
  • Field Details

  • Method Details

    • getDefaultRootType

      SearchType getDefaultRootType()
      Gets the default root type - search result will contain items of this type.
      Returns:
      the default root type of the provider
    • setDefaultRootType

      void setDefaultRootType(SearchType defaultRootType)
      Sets the default root type. We will expect items of this type in the search result.
      Parameters:
      defaultRootType - the new default root type
    • search

      ExtendedSearchResult search(Query query)
      Performs search for the given Query object.
      Parameters:
      query - the query object. This object contains all required information to perform search in the system.
      Returns:
      the extended search result which is a simple POJO that contains result set and some additional information.