Interface FacetManager
-
public interface FacetManagerDeprecated.Instead of using Hibernate Search 5 APIs, get aorg.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.Interface defining methods around faceting.- Author:
- Hardy Ferentschik
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddisableFaceting(String facetingName)Deprecated.Disable a facet with the given name.FacetManagerenableFaceting(FacetingRequest facetingRequest)Deprecated.Enable a facet request.List<Facet>getFacets(String facetingName)Deprecated.Returns theFacets for a given facet name
-
-
-
Method Detail
-
enableFaceting
FacetManager enableFaceting(FacetingRequest facetingRequest)
Deprecated.Enable a facet request.- Parameters:
facetingRequest- the faceting request- Returns:
thisto allow method chaining
-
disableFaceting
void disableFaceting(String facetingName)
Deprecated.Disable a facet with the given name.- Parameters:
facetingName- the name of the facet to disable.
-
getFacets
List<Facet> getFacets(String facetingName)
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:
enableFaceting(FacetingRequest)
-
-