I am upgrading the elasticsearch version from 8.14.3 to 8.15.3 and there are some issues with this query-
return new RangeQuery.Builder() .field(fieldName) .gte(JsonData.of(dateToday)) .build() ._toQuery;
Here, .field seems to be deprecated. Is there any other way to rewrite the query in the new version?