From 9a89a33643b207394e338b29e1b9620223f336e4 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Thu, 14 Jan 2016 14:16:56 +0100 Subject: [PATCH] Merge pull request #15984 from pdudits/patch-1 Fix incorrect file-based example in script_fields --- docs/reference/modules/scripting.asciidoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 + } } } }