elasticsearch/docs/reference/search
Luca Cavanna 50793a68a8
Fields API to allow fetching values when _source is disabled (#87267)
Back when we introduced the fields parameter to the search API, it could only fetch values from _source, hence
the corresponding sub-fetch phase fails early whenever _source is disabled. Today though runtime fields can
be retrieved from a separate value fetcher that reads from fielddata, and metadata fields can be retrieved
from stored fields. These two scenarios currently throw an unnecessary error whenever _source is disabled.

This commit removes the check for disabled _source, so that runtime fields and metadata fields can be retrieved even when _source is disabled. Fields that need to be loaded from _source are simply skipped whenever _source is disabled, similar to when a field is not found in _source.

Closes #87072
2022-06-02 11:28:36 +02:00
..
search-your-data Fields API to allow fetching values when _source is disabled (#87267) 2022-06-02 11:28:36 +02:00
suggesters [DOCS] Overhaul search template docs (#72583) 2021-06-30 16:03:49 -04:00
async-search.asciidoc [DOCS] Remove `testenv` annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
clear-scroll-api.asciidoc
count.asciidoc [DOCS] Add info about GET/POST to the API conventions. (#74529) 2021-06-30 09:24:42 -07:00
explain.asciidoc
field-caps.asciidoc Extra testing and some cleanups for filtering on field caps (#85068) 2022-03-29 11:38:52 +01:00
knn-search.asciidoc Integrate filtering support for ANN (#84734) 2022-03-10 15:53:51 -08:00
multi-search-template-api.asciidoc [DOCS] Update remote cluster docs (#77043) 2021-09-22 16:02:33 -04:00
multi-search.asciidoc [DOCS] Update remote cluster docs (#77043) 2021-09-22 16:02:33 -04:00
point-in-time-api.asciidoc Handle partial search result with point in time (#81349) 2021-12-08 10:04:38 -05:00
profile.asciidoc Synthetic source (#85649) 2022-05-10 07:46:58 -04:00
rank-eval.asciidoc [DOCS] Overhaul search template docs (#72583) 2021-06-30 16:03:49 -04:00
render-search-template-api.asciidoc [DOCS] Overhaul search template docs (#72583) 2021-06-30 16:03:49 -04:00
scroll-api.asciidoc [DOCS] Update alias references (#73427) 2021-05-27 16:00:57 -04:00
search-shards.asciidoc [DOCS] Update alias references (#73427) 2021-05-27 16:00:57 -04:00
search-template-api.asciidoc [DOCS] Update remote cluster docs (#77043) 2021-09-22 16:02:33 -04:00
search-vector-tile-api.asciidoc Soft-deprecation of point/geo_point formats (#86835) 2022-05-17 23:46:43 +02:00
search.asciidoc Added buffer pixels to vector tile spec parsing (#84710) 2022-03-10 16:42:29 +01:00
suggesters.asciidoc Remove 'under development' note in suggester docs (#84366) 2022-02-24 13:27:03 -08:00
terms-enum.asciidoc [Docs] Add supported _terms_enum field types (#83244) 2022-01-28 12:47:12 +01:00
validate.asciidoc [DOCS] Update alias references (#73427) 2021-05-27 16:00:57 -04:00