newRangeQuery

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

Create a range query for float values.

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

Range comparisons are consistent with Float.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.