Browse Source

Docs: CONSOLEify native script docs

Relates #23001
Igor Motov 8 years ago
parent
commit
1fc4fa5729
2 changed files with 6 additions and 3 deletions
  1. 0 1
      docs/build.gradle
  2. 6 2
      docs/reference/modules/scripting/native.asciidoc

+ 0 - 1
docs/build.gradle

@@ -123,7 +123,6 @@ buildRestTests.expectedUnconvertedCandidates = [
   'reference/mapping/types/nested.asciidoc',
   'reference/mapping/types/object.asciidoc',
   'reference/mapping/types/percolator.asciidoc',
-  'reference/modules/scripting/native.asciidoc',
   'reference/modules/scripting/security.asciidoc',
   'reference/modules/scripting/using.asciidoc',
   'reference/modules/cross-cluster-search.asciidoc', // this is hart to test since we need 2 clusters -- maybe we can trick it into referencing itself...

+ 6 - 2
docs/reference/modules/scripting/native.asciidoc

@@ -56,9 +56,11 @@ public class MyNativeScriptPlugin extends Plugin implements ScriptPlugin {
 You can execute the script by specifying its `lang` as `native`, and the name
 of the script as the `id`:
 
+
 [source,js]
 --------------------------------------------------
-curl -XPOST localhost:9200/_search -d '{
+POST /_search
+{
   "query": {
     "function_score": {
       "query": {
@@ -78,5 +80,7 @@ curl -XPOST localhost:9200/_search -d '{
       ]
     }
   }
-}'
+}
 --------------------------------------------------
+// CONSOLE
+// TEST[skip:we don't have a native plugin installed to test this]