Package org.hibernate.search.query.dsl
Interface FacetContext
Deprecated.
- Author:
- Hardy Ferentschik
-
Method Summary
-
Method Details
-
name
Deprecated.- Parameters:
name- the name for this facet request- Returns:
- a
FacetFieldContextto continue building the facet request
-
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.