Method NewFloatRange
NewFloatRange(String, Nullable<Single>, Nullable<Single>, Boolean, Boolean)
Creates a numeric range query using . This works with all
float fields containing exactly one numeric term in the field. The range can be half-open by setting one
of the values to null
.
Declaration
public static FieldCacheRangeFilter<float?> NewFloatRange(string field, float? lowerVal, float? upperVal, bool includeLower, bool includeUpper)
Parameters
Type |
Name |
Description |
System.String |
field |
|
System.Nullable<System.Single> |
lowerVal |
|
System.Nullable<System.Single> |
upperVal |
|
System.Boolean |
includeLower |
|
System.Boolean |
includeUpper |
|
Returns
NewFloatRange(String, FloatParser, Nullable<Single>, Nullable<Single>, Boolean, Boolean)
Creates a numeric range query using . This works with all
float fields containing exactly one numeric term in the field. The range can be half-open by setting one
of the values to null
.
Declaration
public static FieldCacheRangeFilter<float?> NewFloatRange(string field, FloatParser parser, float? lowerVal, float? upperVal, bool includeLower, bool includeUpper)
Parameters
Type |
Name |
Description |
System.String |
field |
|
FloatParser |
parser |
|
System.Nullable<System.Single> |
lowerVal |
|
System.Nullable<System.Single> |
upperVal |
|
System.Boolean |
includeLower |
|
System.Boolean |
includeUpper |
|
Returns