mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Update script query doc for 5.1
From 5.1, we changed the order of Script class ctor. Related to https://github.com/elastic/elasticsearch/pull/21321#issuecomment-266432519
This commit is contained in:
parent
87a016a155
commit
11a6248344
@ -25,13 +25,13 @@ You can use it then with:
|
|||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
QueryBuilder qb = scriptQuery(
|
QueryBuilder qb = scriptQuery(
|
||||||
new Script(
|
new Script(
|
||||||
"myscript", <1>
|
ScriptType.FILE, <1>
|
||||||
ScriptType.FILE, <2>
|
"painless", <2>
|
||||||
"painless", <3>
|
"myscript", <3>
|
||||||
Collections.singletonMap("param1", 5)) <4>
|
Collections.singletonMap("param1", 5)) <4>
|
||||||
);
|
);
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
<1> Script name
|
<1> Script type: either `ScriptType.FILE`, `ScriptType.INLINE` or `ScriptType.INDEXED`
|
||||||
<2> Script type: either `ScriptType.FILE`, `ScriptType.INLINE` or `ScriptType.INDEXED`
|
<2> Scripting engine
|
||||||
<3> Scripting engine
|
<3> Script name
|
||||||
<4> Parameters as a `Map` of `<String, Object>`
|
<4> Parameters as a `Map` of `<String, Object>`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user