Class AbstractSearchProvider

    • Field Detail

      • SIMPLE_OPERATOR

        protected static final Operator SIMPLE_OPERATOR
    • Constructor Detail

      • AbstractSearchProvider

        public AbstractSearchProvider()
    • Method Detail

      • getAllSupportedFacets

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

        public java.util.Set<Facet> getAllSupportedFacets​(java.util.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,
                                                 java.util.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)