Class FacetManagerImpl
java.lang.Object
org.hibernate.search.query.engine.impl.FacetManagerImpl
- All Implemented Interfaces:
FacetManager
Default implementation of the
FacetManager implementation.-
Method Summary
Modifier and TypeMethodDescriptionvoiddisableFaceting(String facetingName) Disable a facet with the given name.enableFaceting(FacetingRequest facetingRequest) Enable a facet request.getFacetGroup(String groupName) Returns a instance ofFacetSelectioninstance in order to apply a disjunction of facet criteria on the current query.Returns theFacets for a given facet name
-
Method Details
-
enableFaceting
Description copied from interface:FacetManagerEnable a facet request.- Specified by:
enableFacetingin interfaceFacetManager- Parameters:
facetingRequest- the faceting request- Returns:
thisto allow method chaining
-
disableFaceting
Description copied from interface:FacetManagerDisable a facet with the given name.- Specified by:
disableFacetingin interfaceFacetManager- Parameters:
facetingName- the name of the facet to disable.
-
getFacets
Description copied from interface:FacetManagerReturns theFacets for a given facet name- Specified by:
getFacetsin interfaceFacetManager- 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
Description copied from interface:FacetManagerReturns a instance ofFacetSelectioninstance in order to apply a disjunction of facet criteria on the current query.- Specified by:
getFacetGroupin interfaceFacetManager- Parameters:
groupName- the name the group. If the name is unknown an empty selection group is returned.nullis not allowed.- Returns:
- the
FacetSelectionfor this group name if it exists., otherwise a new selection is created.
-