[TEST] Fix JavaScript tests - case matters here
This commit is contained in:
parent
09a30e7eee
commit
364cbbd282
|
@ -75,9 +75,9 @@ public class JavaScriptScriptSearchTests extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
logger.info(" --> running doc['num1'].value > 1");
|
logger.info(" --> running doc['num1'].value > 1");
|
||||||
SearchResponse response = client().prepareSearch()
|
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)
|
.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();
|
.execute().actionGet();
|
||||||
|
|
||||||
assertThat(response.getHits().totalHits(), equalTo(2l));
|
assertThat(response.getHits().totalHits(), equalTo(2l));
|
||||||
|
|
Loading…
Reference in New Issue