mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
Update to Lucene 4.9.0 / elasticsearch 1.3.0
Closes #15. Related to #13. (cherry picked from commit 8f077d6)
This commit is contained in:
parent
1e46301d83
commit
c58e49e84a
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -25,6 +25,7 @@ import org.elasticsearch.common.settings.ImmutableSettings;
|
||||
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 class PythonScriptSearchTests extends ElasticsearchIntegrationTest {
|
||||
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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user