elasticsearch/docs/reference
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
..
aggregations Support value retrieval in top_hits (#95828) 2023-05-15 09:21:11 -04:00
analysis Docs: Add updateable flag to synonym filters (#95746) 2023-05-02 17:38:47 -04:00
autoscaling [DOCS] Updates ML decider docs by mentioning CPU as scaling criterion (#92018) 2022-11-30 13:37:20 +01:00
behavioral-analytics/apis [Enterprise Search][Behavioral Analytics] Events ingest API (#95027) 2023-04-12 15:13:19 +02:00
cat [DOCS] Add documentation for cat component templates (#95035) 2023-04-05 16:51:11 +02:00
ccr [DOCS] CCR disaster recovery (#91491) 2023-04-21 10:02:54 +01:00
cluster Bad ref to 'node_id' parameter in Task Mgt doc (#90380) 2023-05-03 11:55:29 +02:00
commands Adjust doc about dangling indices after node is detached from cluster (#92824) 2023-01-12 11:21:50 -05:00
data-management [DOC] auto migrate only for default template (#82043) 2022-05-10 11:35:19 -04:00
data-streams [DOCS] Note limits for queries on downsampled indices (#95749) 2023-05-03 09:58:23 -04:00
dlm/apis Adding origination date to DLM (#95113) 2023-04-19 08:15:24 -05:00
docs [DOCS] Remove 'from' parameter from update_by_query/delete_by_query docs (#93379) 2023-02-01 09:09:57 +09:00
eql [DOCS] Add docs for EQL max_samples_per_key parameter (#92634) 2023-01-04 11:11:24 +01:00
features/apis Fix typo (#91894) 2022-11-24 14:40:43 +01:00
fleet Fix some typos in plugins & reference docs (#84667) 2022-03-07 12:29:58 -05:00
graph Fix typo in Graph Explore API docs (#95907) 2023-05-08 15:38:35 +02:00
health Add shards capacity troubleshooting guide (#95208) 2023-04-19 09:24:07 +02:00
high-availability Remove reference to obsolete node.master (#95814) 2023-05-04 08:08:28 +01:00
how-to [+Doc] Troubleshooting / Hot Spotting (#95429) 2023-04-26 12:29:47 -06:00
ilm [ILM] Fix the migrate to tiers service and migrate action tiers configuration (#95934) 2023-05-09 13:18:01 -04:00
images Add Geospatial analysis overview documentation (#94486) 2023-03-20 10:01:13 -06:00
index-modules [DOCS] Improve watermark troubleshooting documentation (#94222) 2023-03-01 14:34:14 +01:00
indices Remove remaining tsdb tech preview labels (#95563) 2023-04-26 12:11:03 +02:00
ingest Example of dot notation to access and array field for set processor. (#95893) 2023-05-09 10:21:27 +01:00
licensing [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
mapping Test histogram with zero-count buckets and synthetic source (#95400) 2023-05-03 15:23:36 +02:00
migration Fix version in feature-migration test 2023-04-27 14:39:26 -04:00
ml [ML] Include model definition install status for Pytorch models (#95271) 2023-04-17 18:12:26 +01:00
modules Add note on jstack frequency for troubleshooting (#95764) 2023-05-03 10:04:13 +01:00
monitoring [DOCS] Update default monitoring method on Elastic Cloud (#95662) 2023-05-02 11:31:33 +02:00
query-dsl Update range-query.asciidoc (#95822) 2023-05-05 11:15:40 +02:00
release-notes [DOCS] Forward port 8.7.1 release notes 2023-05-02 17:33:15 +04:00
repositories-metering-api [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
rest-api Fix _xpack/usage for enterprise_search in docs tests (#95845) 2023-05-05 10:11:13 +01:00
rollup [DOCS] Add downsampling reference to rollup docs (#91295) 2022-11-08 10:02:17 -05:00
scripting Clarify update scripts docs on doc vs ctx use (#66357) 2023-03-09 08:57:17 -06:00
search [DOCS] Adds example of semantic search with ELSER (#95992) 2023-05-15 14:18:33 +02:00
search-application/apis Add template information to search application API docs (#95591) 2023-04-27 09:32:25 -04:00
searchable-snapshots Clarify searchable snapshot repository reliability (#93023) 2023-01-19 14:31:01 +02:00
settings [DOCS] Document xpack.ml.model_repository setting (#95789) 2023-05-03 17:19:13 +02:00
setup [DOCS] Fix small typo in secure-settings.asciidoc (#96040) 2023-05-11 19:05:25 +02:00
shutdown/apis [DOCS] Fix typo in shutdown-put.asciidoc (#94234) 2023-03-01 15:31:23 +01:00
slm/apis fix incorrect TESTRESPONSE definition (#95508) 2023-04-24 18:16:25 +02:00
snapshot-restore Add support for custom endpoints in the Azure repository (#94576) 2023-03-22 11:40:19 +01:00
sql [DOCS] JDBC Driver troubleshooting params (#93858) 2023-02-24 11:02:51 +01:00
tab-widgets Add shards capacity troubleshooting guide (#95208) 2023-04-19 09:24:07 +02:00
text-structure/apis [ML] Unmute text-structure docs test (#92224) 2022-12-08 09:19:41 +00:00
transform [Transform] Allow specifying destination index aliases in the Transform's dest config (#94943) 2023-04-17 15:08:43 +02:00
troubleshooting [+DOC] Troubleshooting / Mapping Explosion (#95397) 2023-04-27 11:08:56 -06:00
upgrade Docs for snapshots as simple archives (#86261) 2022-05-30 13:23:53 +02:00
vectors [DOCS] Warn about calling vector functions repeatedly (#91864) 2022-12-12 09:43:46 +01:00
aggregations.asciidoc Convert bucket aggs docs to runtime fields (#71202) 2021-04-02 12:12:06 -04:00
alias.asciidoc [DOCS] Explain how to change aliases in data streams documentation (#94110) 2023-03-21 15:34:00 +01:00
analysis.asciidoc Update Lucene analysis base url (#84094) 2022-02-17 12:44:12 +01:00
api-conventions.asciidoc Fix a typo in api-conventions example (#88056) 2022-06-27 13:58:51 -04:00
cat.asciidoc [DOCS] Add documentation for cat component templates (#95035) 2023-04-05 16:51:11 +02:00
cluster.asciidoc Reset desired balance (#94525) 2023-04-20 08:03:48 +02:00
data-management.asciidoc reorder and merge data management and ILM doc pages (#84679) 2022-03-07 18:33:28 -05:00
data-rollup-transform.asciidoc [DOCS] Remove ifdefs for rollup refactor 2021-08-05 09:08:04 -04:00
datatiers.asciidoc [+Doc] Troubleshooting / Hot Spotting (#95429) 2023-04-26 12:29:47 -06:00
dependencies-versions.asciidoc [DOCS] Replace dependencies list with a link. Closes #84863 (#90694) 2022-11-09 14:37:55 -08:00
docs.asciidoc [DOCS] Update single index APIs reference (#73103) 2021-05-14 11:53:34 -04:00
geospatial-analysis.asciidoc Add Geospatial analysis overview documentation (#94486) 2023-03-20 10:01:13 -06:00
gs-index.asciidoc
high-availability.asciidoc [DOCS] Overhaul snapshot and restore docs (#79081) 2021-11-15 12:45:07 -05:00
how-to.asciidoc Add guide for tuning kNN search (#89782) 2022-10-12 14:53:53 -07:00
index-custom-title-page.html Add Geospatial analysis overview documentation (#94486) 2023-03-20 10:01:13 -06:00
index-modules.asciidoc Adding to the documentation and tests for the _none pipeline (#93057) 2023-01-23 14:09:57 -06:00
index.asciidoc Add Geospatial analysis overview documentation (#94486) 2023-03-20 10:01:13 -06:00
index.x.asciidoc
indices.asciidoc [DOCS] Add Downsampling docs (#88571) 2022-10-12 12:10:16 -04:00
ingest.asciidoc [DOCS] Add reference for ingest pipelines in Enterprise Search (#91357) 2022-11-08 09:22:01 +01:00
intro.asciidoc [DOCS] Update ES intro for stretched clusters (#77651) 2021-09-13 16:50:08 -04:00
links.asciidoc [DOCS] Rename ES Reference to ES Guide (#71198) 2021-04-01 15:38:41 -04:00
mapping.asciidoc Minor revision missed in merge. (#67282) 2021-01-11 13:50:06 -05:00
query-dsl.asciidoc Allow doc-values only search on geo_point fields (#83395) 2022-02-02 11:56:19 +01:00
redirects.asciidoc [DOCS] Improve watermark troubleshooting documentation (#94222) 2023-03-01 14:34:14 +01:00
release-notes.asciidoc [DOCS] Forward port 8.7.1 release notes 2023-05-02 17:33:15 +04:00
scripting.asciidoc [DOCS] Add documentation for Painless field API (#83388) 2022-02-03 15:15:38 -05:00
search.asciidoc Add support for Reciprocal Rank Fusion to the search API (#93396) 2023-04-24 15:07:34 -07:00
setup.asciidoc [DOCS] Add simple dev setup instructions back to the README (#89714) 2022-09-01 16:49:05 -07:00
troubleshooting.asciidoc Add note on jstack frequency for troubleshooting (#95764) 2023-05-03 10:04:13 +01:00
upgrade.asciidoc Reinstate prerelease upgrade warning (#90093) 2022-09-16 00:06:08 +09:30