/// Filter f = NumericRangeFilter.newFloatRange("weight", /// new Float(0.3f), new Float(0.10f), /// true, true); ////// /// accepts all documents whose float valued "weight" field /// ranges from 0.3 to 0.10, inclusive. /// See {@link NumericRangeQuery} for details on how Lucene /// indexes and searches numeric valued fields. /// /// NOTE: This API is experimental and /// might change in incompatible ways in the next /// release. /// ///
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.
/// NumericRangeFilter
, that queries a long
/// range using the default precisionStep
{@link NumericUtils#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.
/// 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.
/// NumericRangeFilter
, that queries a int
/// range using the default precisionStep
{@link NumericUtils#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.
/// 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
. By setting inclusive to false, it will
/// match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
/// NumericRangeFilter
, that queries a double
/// range using the default precisionStep
{@link NumericUtils#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.
/// 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
. By setting inclusive to false, it will
/// match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
/// NumericRangeFilter
, that queries a float
/// range using the default precisionStep
{@link NumericUtils#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.
/// true
if the lower endpoint is inclusive true
if the upper endpoint is inclusive