Docs: Update scripting.asciidoc
removed underscore for "_doc" to "doc" Closes #12088
This commit is contained in:
parent
ef4c255e37
commit
a821c558d3
|
@ -535,7 +535,7 @@ source field is loaded per doc, parsed, and then provided to the script
|
||||||
for evaluation. The `_source` forms the context under which the source
|
for evaluation. The `_source` forms the context under which the source
|
||||||
field can be accessed, for example `_source.obj2.obj1.field3`.
|
field can be accessed, for example `_source.obj2.obj1.field3`.
|
||||||
|
|
||||||
Accessing `_source` is much slower compared to using `_doc`
|
Accessing `_source` is much slower compared to using `doc`
|
||||||
but the data is not loaded into memory. For a single field access `_fields` may be
|
but the data is not loaded into memory. For a single field access `_fields` may be
|
||||||
faster than using `_source` due to the extra overhead of potentially parsing large documents.
|
faster than using `_source` due to the extra overhead of potentially parsing large documents.
|
||||||
However, `_source` may be faster if you access multiple fields or if the source has already been
|
However, `_source` may be faster if you access multiple fields or if the source has already been
|
||||||
|
|
Loading…
Reference in New Issue