[TEST] Fix test issues with branches still using mvel as default scripting language
This commit is contained in:
parent
c91ec7c730
commit
9c0b25dcce
|
@ -58,7 +58,7 @@ public class IndexedScriptTests extends ElasticsearchIntegrationTest {
|
|||
|
||||
indexRandom(true,builders);
|
||||
SearchResponse searchResponse;
|
||||
String query = "{ \"query\" : { \"match_all\": {}} , \"script_fields\" : { \"test1\" : { \"id\" : \"script1\" }, \"test2\" : { \"id\" : \"script2\", \"params\":{\"factor\":3} }}, size:1}";
|
||||
String query = "{ \"query\" : { \"match_all\": {}} , \"script_fields\" : { \"test1\" : { \"id\" : \"script1\", \"lang\":\"groovy\" }, \"test2\" : { \"id\" : \"script2\", \"lang\":\"groovy\", \"params\":{\"factor\":3} }}, size:1}";
|
||||
searchResponse = client().prepareSearch().setSource(query).setIndices("test").setTypes("scriptTest").get();
|
||||
assertHitCount(searchResponse,5);
|
||||
assertTrue(searchResponse.getHits().hits().length == 1);
|
||||
|
|
Loading…
Reference in New Issue