From 11a62483449c294380c214d8825cbc1837c54924 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Mon, 12 Dec 2016 14:41:42 +0100 Subject: [PATCH] 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 --- docs/java-api/query-dsl/script-query.asciidoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/java-api/query-dsl/script-query.asciidoc b/docs/java-api/query-dsl/script-query.asciidoc index 5378a6ae37e..a79af0f2cef 100644 --- a/docs/java-api/query-dsl/script-query.asciidoc +++ b/docs/java-api/query-dsl/script-query.asciidoc @@ -25,13 +25,13 @@ You can use it then with: -------------------------------------------------- QueryBuilder qb = scriptQuery( new Script( - "myscript", <1> - ScriptType.FILE, <2> - "painless", <3> + ScriptType.FILE, <1> + "painless", <2> + "myscript", <3> Collections.singletonMap("param1", 5)) <4> ); -------------------------------------------------- -<1> Script name -<2> Script type: either `ScriptType.FILE`, `ScriptType.INLINE` or `ScriptType.INDEXED` -<3> Scripting engine +<1> Script type: either `ScriptType.FILE`, `ScriptType.INLINE` or `ScriptType.INDEXED` +<2> Scripting engine +<3> Script name <4> Parameters as a `Map` of ``