Aggregation #
An aggregation summarizes your data as metrics, statistics, or other analytics.
Pizza organizes aggregations into the following categories:
- Metric aggregations that calculate metrics, such as a sum or average, from field values.
- Bucket aggregations that group documents into buckets, also called bins, based on field values, ranges, or other criteria.
Metric aggregations #
avgaggregation
A single-value metrics aggregation that computes the average of numeric values that are extracted from the aggregated documents.maxaggregation
A single-value metrics aggregation that keeps track and returns the maximum value among the numeric values extracted from the aggregated documents.minaggregation
A single-value metrics aggregation that keeps track and returns the minimum value among numeric values extracted from the aggregated documents.percentilesaggregation
A multi-value metrics aggregation that calculates one or more percentiles over numeric values extracted from the aggregated documents.sumaggregation
A single-value metrics aggregation that sums up numeric values that are extracted from the aggregated documents.value_countaggregation
A single-value metrics aggregation that counts the number of values that are extracted from the aggregated documents.
Bucket aggregations #
date_histogramaggregation
A histogram aggregation that can only be used with date or date range values.termsaggregation
A multi-bucket value source based aggregation where buckets are dynamically built - one per unique value.