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