diff --git a/src/test/java/org/elasticsearch/script/IndexedScriptTests.java b/src/test/java/org/elasticsearch/script/IndexedScriptTests.java index 4d0560e320a..e2cfb3ca4ba 100644 --- a/src/test/java/org/elasticsearch/script/IndexedScriptTests.java +++ b/src/test/java/org/elasticsearch/script/IndexedScriptTests.java @@ -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);