Class FacetComponent.FacetContext

  • Enclosing class:

    public static class FacetComponent.FacetContext
    extends Object
    Encapsulates facet ranges and facet queries such that their parameters are parsed and cached for efficient re-use.

    An instance of this class is initialized and kept in the request context via the static method initContext(ResponseBuilder) and can be retrieved via getFacetContext(SolrQueryRequest)

    This class is used exclusively in a single-node context (i.e. non distributed requests or an individual shard request). Also see FacetComponent.FacetInfo which is dedicated exclusively for merging responses from multiple shards and plays no role during computation of facet counts in a single node request.

    This API is experimental and subject to change

    See Also: