diff --git a/pom.xml b/pom.xml index 8f2882e4a4bb6..0c34e69e90643 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 2.0.0-SNAPSHOT - 4.8.1 + 4.9.0 1 true onerror diff --git a/src/test/java/org/elasticsearch/script/python/PythonScriptSearchTests.java b/src/test/java/org/elasticsearch/script/python/PythonScriptSearchTests.java index bbd4c385e4afb..b24bc067e4b4c 100644 --- a/src/test/java/org/elasticsearch/script/python/PythonScriptSearchTests.java +++ b/src/test/java/org/elasticsearch/script/python/PythonScriptSearchTests.java @@ -25,6 +25,7 @@ import org.elasticsearch.common.settings.Settings; import org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders; import org.elasticsearch.plugins.PluginsService; +import org.elasticsearch.script.ScriptService; import org.elasticsearch.search.sort.SortOrder; import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.hamcrest.CoreMatchers; @@ -228,7 +229,8 @@ public void testPythonEmptyParameters() throws Exception { index("test", "type1", "1", jsonBuilder().startObject().field("myfield", "foo").endObject()); refresh(); - client().prepareUpdate("test", "type1", "1").setScriptLang("python").setScript("ctx[\"_source\"][\"myfield\"]=\"bar\"") + client().prepareUpdate("test", "type1", "1").setScriptLang("python") + .setScript("ctx[\"_source\"][\"myfield\"]=\"bar\"", ScriptService.ScriptType.INLINE) .execute().actionGet(); refresh();