diff --git a/docs/reference/modules/scripting.asciidoc b/docs/reference/modules/scripting.asciidoc index 96b36944fb8..56af524e171 100644 --- a/docs/reference/modules/scripting.asciidoc +++ b/docs/reference/modules/scripting.asciidoc @@ -54,9 +54,11 @@ GET /_search { "script_fields": { "my_field": { - "file": "my_script", - "params": { - "my_var": 2 + "script": { + "file": "my_script", + "params": { + "my_var": 2 + } } } }