Interface FacetManager
public interface FacetManager
Deprecated.
Interface defining methods around faceting.
- Author:
- Hardy Ferentschik
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisableFaceting(String facetingName) Deprecated.Disable a facet with the given name.enableFaceting(FacetingRequest facetingRequest) Deprecated.Enable a facet request.Deprecated.Returns theFacets for a given facet name
-
Method Details
-
enableFaceting
Deprecated.Enable a facet request.- Parameters:
facetingRequest- the faceting request- Returns:
thisto allow method chaining
-
disableFaceting
Deprecated.Disable a facet with the given name.- Parameters:
facetingName- the name of the facet to disable.
-
getFacets
Deprecated.Returns theFacets for a given facet name- 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:
-
org.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create aSearchQuerywithorg.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your facets (now called aggregations) usingSearchQueryOptionsStep.aggregation(AggregationKey, Function). You can then fetch the query result usingSearchFetchable.fetch(Integer)and get each aggregation usingSearchResult.aggregation(AggregationKey). Refer to the migration guide for more information.