[TEST] Fix JavaScript tests - case matters here

This commit is contained in:
Simon Willnauer 2015-06-13 10:34:36 +02:00
parent 09a30e7eee
commit 364cbbd282
1 changed files with 2 additions and 2 deletions

View File

@ -75,9 +75,9 @@ public class JavaScriptScriptSearchTests extends ElasticsearchIntegrationTest {
logger.info(" --> running doc['num1'].value > 1");
SearchResponse response = client().prepareSearch()
.setQuery(scriptQuery(new Script("doc['num1'].value > 1", ScriptService.ScriptType.INLINE, "JS", null)))
.setQuery(scriptQuery(new Script("doc['num1'].value > 1", ScriptService.ScriptType.INLINE, "js", null)))
.addSort("num1", SortOrder.ASC)
.addScriptField("sNum1", new Script("doc['num1'].value", ScriptService.ScriptType.INLINE, "JS", null))
.addScriptField("sNum1", new Script("doc['num1'].value", ScriptService.ScriptType.INLINE, "js", null))
.execute().actionGet();
assertThat(response.getHits().totalHits(), equalTo(2l));