Method NewDoubleRange
NewDoubleRange(String, Nullable<Double>, Nullable<Double>, Boolean, Boolean)
Creates a numeric range filter using GetDoubles(AtomicReader, String, Boolean). This works with all
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<double?> NewDoubleRange(string field, double? lowerVal, double? upperVal, bool includeLower, bool includeUpper)
Parameters
Type |
Name |
Description |
System.String |
field |
|
System.Nullable<System.Double> |
lowerVal |
|
System.Nullable<System.Double> |
upperVal |
|
System.Boolean |
includeLower |
|
System.Boolean |
includeUpper |
|
Returns
NewDoubleRange(String, FieldCache.IDoubleParser, Nullable<Double>, Nullable<Double>, Boolean, Boolean)
Declaration
public static FieldCacheRangeFilter<double?> NewDoubleRange(string field, FieldCache.IDoubleParser parser, double? lowerVal, double? upperVal, bool includeLower, bool includeUpper)
Parameters
Type |
Name |
Description |
System.String |
field |
|
FieldCache.IDoubleParser |
parser |
|
System.Nullable<System.Double> |
lowerVal |
|
System.Nullable<System.Double> |
upperVal |
|
System.Boolean |
includeLower |
|
System.Boolean |
includeUpper |
|
Returns