I am currently migrating my elasticsearch client from Rest High Api Client to the new Elasticsearch 8+ Java Api Client.
I want to convert the code:
RangeQueryBuilder queryBuilder = QueryBuilders.rangeQuery(fieldName)
.from(myFromRange.toString(), true)
.to(myToRange.toString(), true);
What is the substitute of include_lower and include_upper of Rest High Client in the new Java Api Client? I could not find it.
Here is my current code:
RangeQuery.Builder rangeQueryBuilder = new RangeQuery.Builder()
.field(fieldName)
.from(myFromRange.toString())
.to(myToRange.toString())
.build;