2015-05-01 16:04:55 -04:00
|
|
|
[[search-aggregations-metrics]]
|
|
|
|
== Metrics Aggregations
|
|
|
|
|
|
|
|
The aggregations in this family compute metrics based on values extracted in one way or another from the documents that
|
|
|
|
are being aggregated. The values are typically extracted from the fields of the document (using the field data), but
|
|
|
|
can also be generated using scripts.
|
|
|
|
|
|
|
|
Numeric metrics aggregations are a special type of metrics aggregation which output numeric values. Some aggregations output
|
|
|
|
a single numeric metric (e.g. `avg`) and are called `single-value numeric metrics aggregation`, others generate multiple
|
|
|
|
metrics (e.g. `stats`) and are called `multi-value numeric metrics aggregation`. The distinction between single-value and
|
|
|
|
multi-value numeric metrics aggregations plays a role when these aggregations serve as direct sub-aggregations of some
|
|
|
|
bucket aggregations (some bucket aggregations enable you to sort the returned buckets based on the numeric metrics in each bucket).
|
|
|
|
|
|
|
|
include::metrics/avg-aggregation.asciidoc[]
|
|
|
|
|
2018-07-23 18:33:15 -04:00
|
|
|
include::metrics/weighted-avg-aggregation.asciidoc[]
|
|
|
|
|
2020-05-15 17:15:53 -04:00
|
|
|
include::metrics/boxplot-aggregation.asciidoc[]
|
|
|
|
|
2015-05-01 16:04:55 -04:00
|
|
|
include::metrics/cardinality-aggregation.asciidoc[]
|
|
|
|
|
2020-05-15 17:15:53 -04:00
|
|
|
include::metrics/stats-aggregation.asciidoc[]
|
|
|
|
|
2015-05-01 16:04:55 -04:00
|
|
|
include::metrics/extendedstats-aggregation.asciidoc[]
|
|
|
|
|
|
|
|
include::metrics/geobounds-aggregation.asciidoc[]
|
|
|
|
|
2015-09-16 17:54:54 -04:00
|
|
|
include::metrics/geocentroid-aggregation.asciidoc[]
|
|
|
|
|
2015-05-01 16:04:55 -04:00
|
|
|
include::metrics/max-aggregation.asciidoc[]
|
|
|
|
|
|
|
|
include::metrics/min-aggregation.asciidoc[]
|
|
|
|
|
2020-05-15 17:15:53 -04:00
|
|
|
include::metrics/median-absolute-deviation-aggregation.asciidoc[]
|
|
|
|
|
2015-05-01 16:04:55 -04:00
|
|
|
include::metrics/percentile-aggregation.asciidoc[]
|
|
|
|
|
|
|
|
include::metrics/percentile-rank-aggregation.asciidoc[]
|
|
|
|
|
|
|
|
include::metrics/scripted-metric-aggregation.asciidoc[]
|
|
|
|
|
2019-11-15 07:36:21 -05:00
|
|
|
include::metrics/string-stats-aggregation.asciidoc[]
|
|
|
|
|
2015-05-01 16:04:55 -04:00
|
|
|
include::metrics/sum-aggregation.asciidoc[]
|
|
|
|
|
|
|
|
include::metrics/tophits-aggregation.asciidoc[]
|
|
|
|
|
2020-02-14 11:19:11 -05:00
|
|
|
include::metrics/top-metrics-aggregation.asciidoc[]
|
|
|
|
|
2015-05-01 16:04:55 -04:00
|
|
|
include::metrics/valuecount-aggregation.asciidoc[]
|
|
|
|
|
2020-04-06 11:36:47 -04:00
|
|
|
include::metrics/t-test-aggregation.asciidoc[]
|
2015-05-01 16:04:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|