elasticsearch_dsl/search/aggregations/metrics/mod.rs
1//! The aggregations in this family compute metrics based on values extracted in one way or another from the documents that
2//! are being aggregated. The values are typically extracted from the fields of the document (using the field data), but
3//! can also be generated using scripts.
4//!
5//! Numeric metrics aggregations are a special type of metrics aggregation which output numeric values. Some aggregations output
6//! a single numeric metric (e.g. `avg`) and are called `single-value numeric metrics aggregation`, others generate multiple
7//! metrics (e.g. `stats`) and are called `multi-value numeric metrics aggregation`. The distinction between single-value and
8//! multi-value numeric metrics aggregations plays a role when these aggregations serve as direct sub-aggregations of some
9//! bucket aggregations (some bucket aggregations enable you to sort the returned buckets based on the numeric metrics in each bucket).
10//!
11//! <https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics.html>
12
13mod avg_aggregation;
14mod boxplot_aggregation;
15mod cardinality_aggregation;
16mod max_aggregation;
17mod min_aggregation;
18mod rate_aggregation;
19mod sum_aggregation;
20mod top_hits_aggregation;
21
22pub use self::avg_aggregation::*;
23pub use self::boxplot_aggregation::*;
24pub use self::cardinality_aggregation::*;
25pub use self::max_aggregation::*;
26pub use self::min_aggregation::*;
27pub use self::rate_aggregation::*;
28pub use self::sum_aggregation::*;
29pub use self::top_hits_aggregation::*;