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 #
avg
aggregation
A single-value metrics aggregation that computes the average of numeric values that are extracted from the aggregated documents.max
aggregation
A single-value metrics aggregation that keeps track and returns the maximum value among the numeric values extracted from the aggregated documents.min
aggregation
A single-value metrics aggregation that keeps track and returns the minimum value among numeric values extracted from the aggregated documents.percentiles
aggregation
A multi-value metrics aggregation that calculates one or more percentiles over numeric values extracted from the aggregated documents.sum
aggregation
A single-value metrics aggregation that sums up numeric values that are extracted from the aggregated documents.value_count
aggregation
A single-value metrics aggregation that counts the number of values that are extracted from the aggregated documents.
Bucket aggregations #
date_histogram
aggregation
A histogram aggregation that can only be used with date or date range values.terms
aggregation
A multi-bucket value source based aggregation where buckets are dynamically built - one per unique value.