newRangeQuery
Create a range query for long values.
This is for simple one-dimension ranges, for multidimensional ranges use .newRangeQuery instead.
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 name. must not be null.
lower portion of the range (inclusive).
upper portion of the range (inclusive).
Throws
if field is null.
Create a range query for n-dimensional long values.
You can have half-open ranges (which are in fact / queries) by setting lowerValue[i] = Long.MIN_VALUE or upperValue[i] = Long.MAX_VALUE.
Ranges are inclusive. For exclusive ranges, pass Math.addExact(lowerValue[i], 1) or Math.addExact(upperValue[i], -1).
Return
a query matching documents within this range.
Parameters
field name. must not be null.
lower portion of the range (inclusive). must not be null.
upper portion of the range (inclusive). must not be null.
Throws
if field is null, if lowerValue is null, if upperValue is null, or if lowerValue.length != upperValue.length