OpenSearch/docs/reference/aggregations
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
..
bucket fixing typo in datehistogram-aggregation.asciidoc (#26924) 2017-10-08 15:12:43 +02:00
matrix [Docs] Convert remaining code snippets in docs (#26422) 2017-08-30 12:11:10 +02:00
metrics 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
pipeline Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
bucket.asciidoc SignificantText aggregation - like significant_terms, but for text (#24432) 2017-05-24 13:46:43 +01:00
matrix.asciidoc refactor matrix agg documentation from modules to main agg section 2016-06-06 07:39:00 -05:00
metrics.asciidoc Adds geo_centroid metric aggregator 2015-10-14 16:19:09 -05:00
misc.asciidoc Use `typed_keys` parameter to prefix suggester names by type in search responses (#23080) 2017-02-10 10:53:38 +01:00
pipeline.asciidoc Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00