Skip to content

Commit

Permalink
Update to Lucene 4.9.0 / elasticsearch 1.3.0
Browse files Browse the repository at this point in the history
Closes #15.
Related to #13.

(cherry picked from commit 8f077d6)
  • Loading branch information
dadoonet committed Jul 23, 2014
1 parent 1e46301 commit c58e49e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<properties>
<elasticsearch.version>2.0.0-SNAPSHOT</elasticsearch.version>
<lucene.version>4.8.1</lucene.version>
<lucene.version>4.9.0</lucene.version>
<tests.jvms>1</tests.jvms>
<tests.shuffle>true</tests.shuffle>
<tests.output>onerror</tests.output>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit c58e49e

Please sign in to comment.