1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! 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).
//!
//! <https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics.html>

mod avg_aggregation;
mod boxplot_aggregation;
mod cardinality_aggregation;
mod max_aggregation;
mod min_aggregation;
mod rate_aggregation;
mod sum_aggregation;
mod top_hits_aggregation;

pub use self::avg_aggregation::*;
pub use self::boxplot_aggregation::*;
pub use self::cardinality_aggregation::*;
pub use self::max_aggregation::*;
pub use self::min_aggregation::*;
pub use self::rate_aggregation::*;
pub use self::sum_aggregation::*;
pub use self::top_hits_aggregation::*;