Browse Source

Update scripting.asciidoc

Fixed minor typo in the example of native scripting request.
Gao Yingkai 10 years ago
parent
commit
47c5da523f
1 changed files with 4 additions and 2 deletions
  1. 4 2
      docs/reference/modules/scripting.asciidoc

+ 4 - 2
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"
+            }
           }
         }
       ]