IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Filtering Queries and Aggregations

edit

A natural extension to aggregation scoping are filtering queries. Because the aggregation operates in the context of the query scope, any filter applied to the query will also apply to the aggregation.