OpenSearch/docs/reference/search/request
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
..
collapse.asciidoc Support Multiple Collapse Inner Hits 2017-05-26 13:23:57 +02:00
docvalue-fields.asciidoc Bad asciidoc link 2016-07-04 11:02:06 +02:00
explain.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
from-size.asciidoc Add CONSOLE to from/size docs 2016-05-18 11:54:41 +02:00
highlighting.asciidoc Fix percolator highlight sub fetch phase to not highlight query twice (#26622) 2017-09-14 09:31:14 +02:00
index-boost.asciidoc Resolve index names in indices_boost 2016-12-11 21:41:49 +09:00
inner-hits.asciidoc 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
min-score.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
named-queries-and-filters.asciidoc Add indent 2016-05-19 09:33:29 +02:00
post-filter.asciidoc Made the same length of opening and closing lines (#23583) 2017-06-09 00:50:43 -07:00
preference.asciidoc remove _primary and _replica shard preferences (#26791) 2017-10-08 11:03:06 -04:00
query.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
rescore.asciidoc Scripting: Change keys for inline/stored scripts to source/id (#25127) 2017-06-09 08:29:25 -07:00
script-fields.asciidoc Scripting: Change keys for inline/stored scripts to source/id (#25127) 2017-06-09 08:29:25 -07:00
scroll.asciidoc Fix link to perl docs (#24842) 2017-05-24 11:43:54 +02:00
search-after.asciidoc Identify documents by their `_id`. (#24460) 2017-05-09 16:33:52 +02:00
search-type.asciidoc Remove the scan and count search types. 2015-09-07 15:18:45 +02:00
sort.asciidoc Multi-level Nested Sort with Filters (#26395) 2017-08-30 18:52:56 +02:00
source-filtering.asciidoc Fixed naming inconsistency for fields/stored_fields in the APIs (#20166) 2016-09-13 20:54:41 +02:00
stored-fields.asciidoc Remove usage of multi-types from the docs and added a page explaining type removal (#25543) 2017-07-05 12:30:19 +02:00
version.asciidoc Add CONSOLE to version docs 2016-05-18 15:32:48 +02:00