newRangeQuery
Create a range query for long values.
You can have half-open ranges (which are in fact / queries) by setting lowerValue = Long.MIN_VALUE or upperValue = Long.MAX_VALUE.
Ranges are inclusive. For exclusive ranges, pass Math.addExact(lowerValue, 1) or Math.addExact(upperValue, -1).
Return
a query matching documents within this range.
Parameters
field
field name. must not be null.
lowerValue
lower portion of the range (inclusive).
upperValue
upper portion of the range (inclusive).
Throws
if field is null.