Method NewLongRange
NewLongRange(String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, Boolean)
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.
Declaration
public static NumericRangeFilter<long> NewLongRange(String field, int precisionStep, long? min, long? max, bool minInclusive, bool maxInclusive)
Parameters
Type |
Name |
Description |
System.String |
field |
|
System.Int32 |
precisionStep |
|
System.Nullable<System.Int64> |
min |
|
System.Nullable<System.Int64> |
max |
|
System.Boolean |
minInclusive |
|
System.Boolean |
maxInclusive |
|
Returns
NewLongRange(String, Nullable<Int64>, Nullable<Int64>, Boolean, Boolean)
Factory that creates a NumericRangeFilter
, that queries a long
range using the default precisionStep
Lucene.Net.Util.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.
Declaration
public static NumericRangeFilter<long> NewLongRange(String field, long? min, long? max, bool minInclusive, bool maxInclusive)
Parameters
Type |
Name |
Description |
System.String |
field |
|
System.Nullable<System.Int64> |
min |
|
System.Nullable<System.Int64> |
max |
|
System.Boolean |
minInclusive |
|
System.Boolean |
maxInclusive |
|
Returns