Change params._source to params['_source'] in example.

This commit is contained in:
Jack Conradson 2017-03-15 17:29:31 -07:00
parent 4c11ebc8b9
commit 8e04561c0d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ the above case), and allow to return custom values to be returned (the
evaluated value of the script).
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:
[source,js]