Interface FacetContext


@Deprecated public interface FacetContext
Deprecated.
Instead of using Hibernate Search 5 APIs, get a org.hibernate.search.mapper.orm.session.SearchSession using org.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create a SearchQuery with org.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your facets (now called aggregations) using SearchQueryOptionsStep.aggregation(AggregationKey, Function). You can then fetch the query result using SearchFetchable.fetch(Integer) and get each aggregation using SearchResult.aggregation(AggregationKey). Refer to the migration guide for more information.
Author:
Hardy Ferentschik
  • Method Summary

    Modifier and Type
    Method
    Description
    name(String name)
    Deprecated.
     
  • Method Details

    • name

      Deprecated.
      Parameters:
      name - the name for this facet request
      Returns:
      a FacetFieldContext to continue building the facet request