parent
e09f3ecbb3
commit
1fc4fa5729
|
@ -123,7 +123,6 @@ buildRestTests.expectedUnconvertedCandidates = [
|
||||||
'reference/mapping/types/nested.asciidoc',
|
'reference/mapping/types/nested.asciidoc',
|
||||||
'reference/mapping/types/object.asciidoc',
|
'reference/mapping/types/object.asciidoc',
|
||||||
'reference/mapping/types/percolator.asciidoc',
|
'reference/mapping/types/percolator.asciidoc',
|
||||||
'reference/modules/scripting/native.asciidoc',
|
|
||||||
'reference/modules/scripting/security.asciidoc',
|
'reference/modules/scripting/security.asciidoc',
|
||||||
'reference/modules/scripting/using.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...
|
'reference/modules/cross-cluster-search.asciidoc', // this is hart to test since we need 2 clusters -- maybe we can trick it into referencing itself...
|
||||||
|
|
|
@ -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
|
You can execute the script by specifying its `lang` as `native`, and the name
|
||||||
of the script as the `id`:
|
of the script as the `id`:
|
||||||
|
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
curl -XPOST localhost:9200/_search -d '{
|
POST /_search
|
||||||
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"function_score": {
|
"function_score": {
|
||||||
"query": {
|
"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]
|
||||||
|
|
Loading…
Reference in New Issue