newRangeQuery
Create a range query for double 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 = Double.NEGATIVE_INFINITY or upperValue = Double.POSITIVE_INFINITY.
Ranges are inclusive. For exclusive ranges, pass .nextUp or .nextUp.
Range comparisons are consistent with Double.compareTo.
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 double values.
You can have half-open ranges (which are in fact / queries) by setting lowerValue[i] = Double.NEGATIVE_INFINITY or upperValue[i] = Double.POSITIVE_INFINITY.
Ranges are inclusive. For exclusive ranges, pass Math#nextUp(lowerValue[i]) or Math.nextDown(upperValue[i]).
Range comparisons are consistent with Double.compareTo.
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