An aggregation framework collects analytic data from a set of documents and combines the information to build complex data summaries and statistics. There are four families of aggregations, each of which has a different role:
- Metrics: This family of aggregations is based on the metrics on different fields of the Elasticsearch documents.
- Bucketing: This is a family of aggregations that build buckets. Each individual bucket is correlated to a key and a document criterion. When executing an aggregation, the bucket criteria are evaluated on all documents. A document falls in a relevant bucket if it meets the criteria. Each aggregation process will result in a list of buckets that contain documents that belong to it.
- Pipeline: The pipeline family aggregates the output of other aggregations and their associated metrics.
- Matrix: A matrix is created...