Fix documentation for script processor (#25299)

This commit is contained in:
Alexander Kazakov 2017-06-26 22:14:23 +03:00 committed by Ryan Ernst
parent e9e7007a51
commit 53b74348ff
1 changed files with 2 additions and 2 deletions

View File

@ -1758,11 +1758,11 @@ caching see <<modules-scripting-using-caching, Script Caching>>.
| Name | Required | Default | Description
| `lang` | no | "painless" | The scripting language
| `id` | no | - | The stored script id to refer to
| `inline` | no | - | An inline script to be executed
| `source` | no | - | An inline script to be executed
| `params` | no | - | Script Parameters
|======
One of `id` or `inline` options must be provided in order to properly reference a script to execute.
One of `id` or `source` options must be provided in order to properly reference a script to execute.
You can access the current ingest document from within the script context by using the `ctx` variable.