Skip to content

Commit

Permalink
[Docs] Improvements in script-fields.asciidoc (#28174)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbanchich authored and Christoph Büscher committed Jan 11, 2018
1 parent 771fdc7 commit 6fa581c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/search/request/script-fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ It's important to understand the difference between
using the doc keyword, will cause the terms for that field to be loaded to
memory (cached), which will result in faster execution, but more memory
consumption. Also, the `doc[...]` notation only allows for simple valued
fields (can't return a json object from it) and make sense only on
non-analyzed or single term based fields. However, using `doc` is
fields (you can't return a json object from it) and makes sense only for
non-analyzed or single term based fields. However, using `doc` is
still the recommended way to access values from the document, if at all
possible, because `_source` must be loaded and parsed every time it's used.
Using `_source` is very slow.
Expand Down

0 comments on commit 6fa581c

Please sign in to comment.