Skip to main content

Module agg

Module agg 

Source
Expand description

Aggregation framework: collectors, result types, and aggregation definitions.

See [[aggregations]] and [[feature-aggregations-v010|milestone-3]].

Modules§

bucket
Bucket aggregation implementations: terms, range, histogram, filter.
hll
HyperLogLog++ cardinality estimation for the cardinality aggregation.
metric
Metric aggregation implementations: avg, sum, min, max, value_count, stats.
parser
Aggregation JSON parser.
tdigest
T-digest approximate percentile estimation for the percentiles aggregation.

Structs§

Bucket
A single bucket in a bucket aggregation result.
BucketResult
Result from a bucket aggregation.
HitsResult
Result from a top_hits aggregation.
MetricResult
Result from a metric aggregation (single numeric value).
RangeDef
A range definition for range aggregation.

Enums§

AggregationExpression
A composable aggregation expression. The engine’s native representation. JSON is parsed into this at the edge. Analogous to ScoringExpression.
AggregationResult
Top-level aggregation result.
BucketKey
The key identifying a bucket.
CalendarInterval
Calendar-aware intervals.
DateInterval
Date histogram interval.

Traits§

Aggregator
Per-segment aggregation collector. Called once per matching document.
AggregatorFactory
Creates per-segment aggregation collectors and merges their results.