Change params._source to params['_source'] in example.
This commit is contained in:
parent
4c11ebc8b9
commit
8e04561c0d
|
@ -38,7 +38,7 @@ the above case), and allow to return custom values to be returned (the
|
||||||
evaluated value of the script).
|
evaluated value of the script).
|
||||||
|
|
||||||
Script fields can also access the actual `_source` document and
|
Script fields can also access the actual `_source` document and
|
||||||
extract specific elements to be returned from it by using `params._source`.
|
extract specific elements to be returned from it by using `params['_source']`.
|
||||||
Here is an example:
|
Here is an example:
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
|
|
Loading…
Reference in New Issue