IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Scope
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Scope
editBy default, facets are computed within the query resultset. But, you can
compute facets from all documents in the index whatever the query is,
using global
parameter:
TermsFacetBuilder facet = FacetBuilders.termsFacet("f") .field("brand") .global(true);
Was this helpful?
Thank you for your feedback.