Method Detail

newLongRange

Factory that creates a NumericRangeFilter, that filters a long
range using the given precisionStep.
You can have half-open ranges (which are in fact </≤ or >/≥ queries)
by setting the min or max value to null. By setting inclusive to false, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

newLongRange

Factory that creates a NumericRangeFilter, that queries a long
range using the default precisionStepNumericUtils.PRECISION_STEP_DEFAULT (4).
You can have half-open ranges (which are in fact </≤ or >/≥ queries)
by setting the min or max value to null. By setting inclusive to false, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

newIntRange

Factory that creates a NumericRangeFilter, that filters a int
range using the given precisionStep.
You can have half-open ranges (which are in fact </≤ or >/≥ queries)
by setting the min or max value to null. By setting inclusive to false, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

newIntRange

Factory that creates a NumericRangeFilter, that queries a int
range using the default precisionStepNumericUtils.PRECISION_STEP_DEFAULT (4).
You can have half-open ranges (which are in fact </≤ or >/≥ queries)
by setting the min or max value to null. By setting inclusive to false, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

newDoubleRange

Factory that creates a NumericRangeFilter, that filters a double
range using the given precisionStep.
You can have half-open ranges (which are in fact </≤ or >/≥ queries)
by setting the min or max value to null.
Double.NaN will never match a half-open range, to hit NaN use a query
with min == max == Double.NaN. By setting inclusive to false, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

newDoubleRange

Factory that creates a NumericRangeFilter, that queries a double
range using the default precisionStepNumericUtils.PRECISION_STEP_DEFAULT (4).
You can have half-open ranges (which are in fact </≤ or >/≥ queries)
by setting the min or max value to null.
Double.NaN will never match a half-open range, to hit NaN use a query
with min == max == Double.NaN. By setting inclusive to false, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

newFloatRange

Factory that creates a NumericRangeFilter, that filters a float
range using the given precisionStep.
You can have half-open ranges (which are in fact </≤ or >/≥ queries)
by setting the min or max value to null.
Float.NaN will never match a half-open range, to hit NaN use a query
with min == max == Float.NaN. By setting inclusive to false, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

newFloatRange

Factory that creates a NumericRangeFilter, that queries a float
range using the default precisionStepNumericUtils.PRECISION_STEP_DEFAULT (4).
You can have half-open ranges (which are in fact </≤ or >/≥ queries)
by setting the min or max value to null.
Float.NaN will never match a half-open range, to hit NaN use a query
with min == max == Float.NaN. By setting inclusive to false, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.