Class AbstractSearchProvider

All Implemented Interfaces:
SearchProvider
Direct Known Subclasses:
GenericQuerySearchProvider

public abstract class AbstractSearchProvider extends PropertyBasedService implements SearchProvider
Base search provider class. Ensures that root types may only be instances of SearchType.
  • Field Details

    • SIMPLE_OPERATOR

      protected static final Operator SIMPLE_OPERATOR
  • Constructor Details

    • AbstractSearchProvider

      public AbstractSearchProvider()
  • Method Details

    • getAllSupportedFacets

      public Set<Facet> getAllSupportedFacets()
      Returns all supported facets. This includes facets of root types and of any sub type.
    • getAllSupportedFacets

      public Set<Facet> getAllSupportedFacets(Collection<SearchType> rootTypes)
      Returns all supported facets for a given set of root types. It returns facets for each root type and their sub types.
    • search

      public abstract ExtendedSearchResult search(Query query)
      Performs a query.
      Specified by:
      search in interface SearchProvider
      Parameters:
      query - the query containing all values and settings
      Returns:
      the extended search result which is a simple POJO that contains result set and some additional information.
    • queryFacets

      public abstract FacetsResult queryFacets(ExtendedSearchResult result, Set<Facet> facets)
      Performs a facet query upon a existing search result.
      Parameters:
      result - the existing search result
      facets - the facets to be queried
    • setConditionTranslatorRegistry

      public void setConditionTranslatorRegistry(ConditionTranslatorRegistry conditionTranslatorRegistry)
    • getConditionTranslatorRegistry

      public ConditionTranslatorRegistry getConditionTranslatorRegistry()