Interface Aggregation
- All Known Subinterfaces:
BucketAggregation,MetricAggregation
- All Known Implementing Classes:
AvgAggregation,DateHistogramAggregation,FilterAggregation,MaxAggregation,RangeAggregation,StatsAggregation,SumAggregation,TermsAggregation,ValueCountAggregation
@PublicApi
public interface Aggregation
Base interface for search aggregation definitions.
Aggregations are used to calculate metrics or group documents into buckets based on the defined criteria.
Implementations of this interface should also provide a corresponding AggregationResult to
represent the result of the implemented aggregation.
Aggregations use doc values to calculate the results, so the fields used in the aggregation must index doc values,
see Field.hasDocValues() and definitions of the specific system fields for more information.
- Since:
- 10.5
- See Also: