newRangeQuery

fun newRangeQuery(field: String, lowerValue: Double, upperValue: Double): Query

Create a range query for double values.

You can have half-open ranges (which are in fact / queries) by setting lowerValue = Double.NEGATIVE_INFINITY or upperValue = Double.POSITIVE_INFINITY.

Range comparisons are consistent with Double.compareTo.

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.