Docs: CONSOLEify native script docs

Relates #23001
This commit is contained in:
Igor Motov 2017-02-08 11:14:17 -05:00
parent e09f3ecbb3
commit 1fc4fa5729
2 changed files with 6 additions and 3 deletions

View File

@ -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...

View File

@ -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]