[TEST] Fix test issues with branches still using mvel as default scripting language

This commit is contained in:
Brian Murphy 2014-07-14 16:51:17 +01:00
parent c91ec7c730
commit 9c0b25dcce
1 changed files with 1 additions and 1 deletions

View File

@ -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);