Browse Source

Specify how to add fields from _source from a script (#88150)

Co-authored-by: freiit <freiit@users.noreply.github.com>
Luca Cavanna 3 years ago
parent
commit
7ee737ec01
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/reference/mapping/runtime.asciidoc

+ 3 - 3
docs/reference/mapping/runtime.asciidoc

@@ -110,9 +110,9 @@ against runtime fields.
 You map runtime fields by adding a `runtime` section under the mapping
 definition and defining
 <<modules-scripting-using,a Painless script>>. This script has access to the
-entire context of a document, including the original `_source` and any mapped
-fields plus their values. At query time, the script runs and generates values
-for each scripted field that is required for the query.
+entire context of a document, including the original `_source` via `params._source`
+and any mapped fields plus their values. At query time, the script runs and 
+generates values for each scripted field that is required for the query.
 
 .Emitting runtime field values
 ****