OpenSearch/docs/reference/search
Martijn van Groningen 87c9b79b10
Return the _source of inner hit nested as is without wrapping it into its full path context
Due to a change happened via #26102 to make the nested source consistent
with or without source filtering, the _source of a nested inner hit was
always wrapped in the parent path. This turned out to be not ideal for
users relying on the nested source, as it would require additional parsing
on the client side. This change fixes this, the _source of nested inner hits
is now no longer wrapped by parent json objects, irregardless of whether
the _source is included as is or source filtering is used.

Internally source filtering and highlighting relies on the fact that the
_source of nested inner hits are accessible by its full field path, so
in order to now break this, the conversion of the _source into its binary
form is performed in FetchSourceSubPhase, after any potential source filtering
is performed to make sure the structure of _source of the nested inner hit
is consistent irregardless if source filtering is performed.

PR for #26944

Closes #26944
2017-10-19 12:04:56 +02:00
..
request Return the _source of inner hit nested as is without wrapping it into its full path context 2017-10-19 12:04:56 +02:00
suggesters [Docs] Clarify size parameter in Completion Suggester doc (#26617) 2017-09-13 17:28:31 +02:00
count.asciidoc Add a shard filter search phase to pre-filter shards based on query rewriting (#25658) 2017-07-12 22:19:20 +02:00
explain.asciidoc Remove the _all metadata field (#26356) 2017-08-28 17:43:59 +02:00
field-caps.asciidoc Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
multi-search.asciidoc Scripting: Deprecate stored search template apis (#25437) 2017-07-12 16:07:28 -07:00
profile.asciidoc [Docs] Convert more doc snippets (#26404) 2017-08-30 09:30:36 +02:00
request-body.asciidoc Docs: Add search response took time explanation (#26202) 2017-08-15 08:43:26 +02:00
search-shards.asciidoc Include all aliases including non-filtering in `_search_shards` response (#24489) 2017-05-05 09:34:12 +02:00
search-template.asciidoc Scripting: Deprecate stored search template apis (#25437) 2017-07-12 16:07:28 -07:00
search.asciidoc Limit the number of concurrent shard requests per search request (#25632) 2017-07-11 16:23:10 +02:00
suggesters.asciidoc Use `typed_keys` parameter to prefix suggester names by type in search responses (#23080) 2017-02-10 10:53:38 +01:00
uri-request.asciidoc Add a shard filter search phase to pre-filter shards based on query rewriting (#25658) 2017-07-12 22:19:20 +02:00
validate.asciidoc Do not index `_type` when there is at most one type. (#24363) 2017-05-04 16:29:35 +02:00