Method NewInt32Range
NewInt32Range(String, Int32, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean)
Factory that creates a NumericRangeFilter, that filters a null
. By setting inclusive to false
, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
NOTE: This was newIntRange() in Lucene
Declaration
public static NumericRangeFilter<int> NewInt32Range(string field, int precisionStep, int? min, int? max, bool minInclusive, bool maxInclusive)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | |
System.Int32 | precisionStep | |
System.Nullable<System.Int32> | min | |
System.Nullable<System.Int32> | max | |
System.Boolean | minInclusive | |
System.Boolean | maxInclusive |
Returns
Type | Description |
---|---|
NumericRangeFilter<System.Int32> |
NewInt32Range(String, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean)
Factory that creates a NumericRangeFilter, that queries a null
. By setting inclusive to false
, it will
match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
NOTE: This was newIntRange() in Lucene
Declaration
public static NumericRangeFilter<int> NewInt32Range(string field, int? min, int? max, bool minInclusive, bool maxInclusive)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | |
System.Nullable<System.Int32> | min | |
System.Nullable<System.Int32> | max | |
System.Boolean | minInclusive | |
System.Boolean | maxInclusive |
Returns
Type | Description |
---|---|
NumericRangeFilter<System.Int32> |