Method NewIntRange
NewIntRange(String, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean)
Creates a numeric range query using . This works with all
int 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<int?> NewIntRange(string field, int? lowerVal, int? upperVal, bool includeLower, bool includeUpper)
Parameters
Type |
Name |
Description |
System.String |
field |
|
System.Nullable<System.Int32> |
lowerVal |
|
System.Nullable<System.Int32> |
upperVal |
|
System.Boolean |
includeLower |
|
System.Boolean |
includeUpper |
|
Returns
NewIntRange(String, IntParser, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean)
Creates a numeric range query using . This works with all
int 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<int?> NewIntRange(string field, IntParser parser, int? lowerVal, int? upperVal, bool includeLower, bool includeUpper)
Parameters
Type |
Name |
Description |
System.String |
field |
|
IntParser |
parser |
|
System.Nullable<System.Int32> |
lowerVal |
|
System.Nullable<System.Int32> |
upperVal |
|
System.Boolean |
includeLower |
|
System.Boolean |
includeUpper |
|
Returns