Skip to content

Commit c5f3c5c

Browse files
committed
Use gte and lt instead of from and to
1 parent eae5ae5 commit c5f3c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/fr/pilato/test/elasticsearch/hlclient/EsClientIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ void rangeQuery() throws IOException {
432432
client.indices().refresh(rr -> rr.index(indexName));
433433
SearchResponse<ObjectNode> response = client.search(sr -> sr.index(indexName)
434434
.query(q -> q.range(rq -> rq
435-
.number(nrq -> nrq.field("foo").gt(0.0).lt(1.0))
435+
.number(nrq -> nrq.field("foo").gte(0.0).lt(1.0))
436436
))
437437
, ObjectNode.class);
438438
assertNotNull(response.hits().total());

0 commit comments

Comments
 (0)