Skip to content

Commit 21d428b

Browse files
committed
Small corrections to stored_fields docs. (#53247)
* Fix a reference to the 'field' option. * Remove claim about detecting script fields. * Specify that object fields will just be ignored.
1 parent c9f4806 commit 21d428b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

docs/reference/search/request/stored-fields.asciidoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ If the requested fields are not stored (`store` mapping set to `false`), they wi
4040

4141
Stored field values fetched from the document itself are always returned as an array. On the contrary, metadata fields like `_routing` are never returned as an array.
4242

43-
Also only leaf fields can be returned via the `field` option. So object fields can't be returned and such requests
44-
will fail.
45-
46-
Script fields can also be automatically detected and used as fields, so
47-
things like `_source.obj1.field1` can be used, though not recommended, as
48-
`obj1.field1` will work as well.
43+
Also only leaf fields can be returned via the `stored_fields` option. If an object field is specified, it will be ignored.
4944

5045
NOTE: On its own, `stored_fields` cannot be used to load fields in nested
5146
objects -- if a field contains a nested object in its path, then no data will

0 commit comments

Comments
 (0)