From 47c5da523fb9cc9ac53bba61108a5e12f80dfeaa Mon Sep 17 00:00:00 2001 From: Gao Yingkai Date: Thu, 3 Dec 2015 20:24:20 -0500 Subject: [PATCH] Update scripting.asciidoc Fixed minor typo in the example of native scripting request. --- docs/reference/modules/scripting.asciidoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/reference/modules/scripting.asciidoc b/docs/reference/modules/scripting.asciidoc index 982097cdf1c..aea7846202e 100644 --- a/docs/reference/modules/scripting.asciidoc +++ b/docs/reference/modules/scripting.asciidoc @@ -425,8 +425,10 @@ curl -XPOST localhost:9200/_search -d '{ "functions": [ { "script_score": { - "id": "my_script", - "lang" : "native" + "script": { + "id": "my_script", + "lang" : "native" + } } } ]