elasticsearch/docs/reference/aggregations/metrics
Kostas Krikellas deffa800db
Support value retrieval in top_hits (#95828)
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.
2023-05-15 09:21:11 -04:00
..
avg-aggregation.asciidoc Corrected an incomplete sentence. (#86542) 2022-07-12 09:19:58 -04:00
boxplot-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
cardinality-aggregation.asciidoc Add ability to select execution mode for cardinality aggregation (#87704) 2022-07-05 09:11:22 -04:00
cartesian-bounds-aggregation.asciidoc Added documentation for cartesian-bounds aggregation (#91623) 2022-11-18 11:00:41 +01:00
cartesian-centroid-aggregation.asciidoc Added documentation for cartesian-bounds aggregation (#91623) 2022-11-18 11:00:41 +01:00
extendedstats-aggregation.asciidoc Convert metric aggs docs runtime fields (#71260) 2021-04-05 13:08:13 -04:00
geobounds-aggregation.asciidoc Added documentation for cartesian-bounds aggregation (#91623) 2022-11-18 11:00:41 +01:00
geocentroid-aggregation.asciidoc Centroid aggregation for cartesian points and shapes (#89216) 2022-09-28 17:14:30 +02:00
geoline-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
matrix-stats-aggregation.asciidoc Convert metric aggs docs runtime fields (#71260) 2021-04-05 13:08:13 -04:00
max-aggregation.asciidoc [DOCS] Remove unneeded callouts from snippets (#83798) 2022-02-10 15:04:46 -05:00
median-absolute-deviation-aggregation.asciidoc Convert metric aggs docs runtime fields (#71260) 2021-04-05 13:08:13 -04:00
min-aggregation.asciidoc [DOCS] Remove unneeded callouts from snippets (#83798) 2022-02-10 15:04:46 -05:00
percentile-aggregation.asciidoc [DOCS] Remove experimental language from HDR Histo percentiles/ranks (#81773) 2021-12-15 14:35:08 -05:00
percentile-rank-aggregation.asciidoc [DOCS] Remove experimental language from HDR Histo percentiles/ranks (#81773) 2021-12-15 14:35:08 -05:00
rate-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
scripted-metric-aggregation.asciidoc [DOCS] Change agg titles to sentence case (#64425) 2020-10-30 13:25:21 -04:00
stats-aggregation.asciidoc Convert metric aggs docs runtime fields (#71260) 2021-04-05 13:08:13 -04:00
string-stats-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
sum-aggregation.asciidoc [DOCS] Update sum aggregation for histograms (#84493) (#84496) 2022-03-01 08:42:05 -05:00
t-test-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
top-metrics-aggregation.asciidoc Support value retrieval in top_hits (#95828) 2023-05-15 09:21:11 -04:00
tophits-aggregation.asciidoc Support value retrieval in top_hits (#95828) 2023-05-15 09:21:11 -04:00
valuecount-aggregation.asciidoc Convert metric aggs docs runtime fields (#71260) 2021-04-05 13:08:13 -04:00
weighted-avg-aggregation.asciidoc [DOCS] Fix the weighed average documentation (#81307) 2021-12-03 23:28:41 +01:00