Class FacetManagerImpl

java.lang.Object
org.hibernate.search.query.engine.impl.FacetManagerImpl
All Implemented Interfaces:
FacetManager

public class FacetManagerImpl extends Object implements FacetManager
Default implementation of the FacetManager implementation.
  • Method Details

    • enableFaceting

      public FacetManager enableFaceting(FacetingRequest facetingRequest)
      Description copied from interface: FacetManager
      Enable a facet request.
      Specified by:
      enableFaceting in interface FacetManager
      Parameters:
      facetingRequest - the faceting request
      Returns:
      this to allow method chaining
    • disableFaceting

      public void disableFaceting(String facetingName)
      Description copied from interface: FacetManager
      Disable a facet with the given name.
      Specified by:
      disableFaceting in interface FacetManager
      Parameters:
      facetingName - the name of the facet to disable.
    • getFacets

      public List<Facet> getFacets(String facetingName)
      Description copied from interface: FacetManager
      Returns the Facets for a given facet name
      Specified by:
      getFacets in interface FacetManager
      Parameters:
      facetingName - the facet name for which to return the facet list
      Returns:
      the facet result list which corresponds to the facet request with the given name. The empty list is returned for an unknown facet name.
      See Also:
    • getFacetGroup

      public FacetSelection getFacetGroup(String groupName)
      Description copied from interface: FacetManager
      Returns a instance of FacetSelection instance in order to apply a disjunction of facet criteria on the current query.
      Specified by:
      getFacetGroup in interface FacetManager
      Parameters:
      groupName - the name the group. If the name is unknown an empty selection group is returned. null is not allowed.
      Returns:
      the FacetSelection for this group name if it exists., otherwise a new selection is created.