mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 15:47:23 -04:00
This is used when the `top_hits` output is passed to pipeline aggregators like bucket selectors. The logic retrieves the requested field from the source of the first SearchHit. This implies that (a) the spec of the wrapping aggregator (e.g. `bucket_path`) points to an appropriate field using a bracketed reference (e.g. `my_top_hits[my_metric]`) and (b) the `top_hits` contains a `size: 1` setting. This PR also includes extensions to YAML tests for `top_metrics` and `top_hits` to cover the cases where these are used in pipeline aggregations through `bucket_selector`, similar to a HAVING clause in SQL. Related to https://github.com/elastic/elasticsearch/issues/73429. |
||
---|---|---|
.. | ||
avg-aggregation.asciidoc | ||
boxplot-aggregation.asciidoc | ||
cardinality-aggregation.asciidoc | ||
cartesian-bounds-aggregation.asciidoc | ||
cartesian-centroid-aggregation.asciidoc | ||
extendedstats-aggregation.asciidoc | ||
geobounds-aggregation.asciidoc | ||
geocentroid-aggregation.asciidoc | ||
geoline-aggregation.asciidoc | ||
matrix-stats-aggregation.asciidoc | ||
max-aggregation.asciidoc | ||
median-absolute-deviation-aggregation.asciidoc | ||
min-aggregation.asciidoc | ||
percentile-aggregation.asciidoc | ||
percentile-rank-aggregation.asciidoc | ||
rate-aggregation.asciidoc | ||
scripted-metric-aggregation.asciidoc | ||
stats-aggregation.asciidoc | ||
string-stats-aggregation.asciidoc | ||
sum-aggregation.asciidoc | ||
t-test-aggregation.asciidoc | ||
top-metrics-aggregation.asciidoc | ||
tophits-aggregation.asciidoc | ||
valuecount-aggregation.asciidoc | ||
weighted-avg-aggregation.asciidoc |