Skip to content

Commit c58e49e

Browse files
committed
Update to Lucene 4.9.0 / elasticsearch 1.3.0
Closes #15. Related to #13. (cherry picked from commit 8f077d6)
1 parent 1e46301 commit c58e49e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
<properties>
3434
<elasticsearch.version>2.0.0-SNAPSHOT</elasticsearch.version>
35-
<lucene.version>4.8.1</lucene.version>
35+
<lucene.version>4.9.0</lucene.version>
3636
<tests.jvms>1</tests.jvms>
3737
<tests.shuffle>true</tests.shuffle>
3838
<tests.output>onerror</tests.output>

src/test/java/org/elasticsearch/script/python/PythonScriptSearchTests.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.elasticsearch.common.settings.Settings;
2626
import org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders;
2727
import org.elasticsearch.plugins.PluginsService;
28+
import org.elasticsearch.script.ScriptService;
2829
import org.elasticsearch.search.sort.SortOrder;
2930
import org.elasticsearch.test.ElasticsearchIntegrationTest;
3031
import org.hamcrest.CoreMatchers;
@@ -228,7 +229,8 @@ public void testPythonEmptyParameters() throws Exception {
228229
index("test", "type1", "1", jsonBuilder().startObject().field("myfield", "foo").endObject());
229230
refresh();
230231

231-
client().prepareUpdate("test", "type1", "1").setScriptLang("python").setScript("ctx[\"_source\"][\"myfield\"]=\"bar\"")
232+
client().prepareUpdate("test", "type1", "1").setScriptLang("python")
233+
.setScript("ctx[\"_source\"][\"myfield\"]=\"bar\"", ScriptService.ScriptType.INLINE)
232234
.execute().actionGet();
233235
refresh();
234236

0 commit comments

Comments
 (0)