elasticsearch/docs/reference/aggregations
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
..
bucket Time series docs (#94337) 2023-05-03 11:01:07 -07:00
metrics Support value retrieval in top_hits (#95828) 2023-05-15 09:21:11 -04:00
pipeline [DOCS] Adds tip to change point agg docs. (#94981) 2023-04-05 15:43:16 +02:00
bucket.asciidoc Time series docs (#94337) 2023-05-03 11:01:07 -07:00
metrics.asciidoc Added documentation for cartesian-bounds aggregation (#91623) 2022-11-18 11:00:41 +01:00
pipeline.asciidoc Update pipeline.asciidoc (#94526) 2023-03-21 09:47:55 +01:00