Class NumericRangeFilter<T>
A Filter that only accepts numeric values within
a specified range. To use this, you must first index the
numeric values using Int32Field,
Single
You create a new Numeric
Filter f = NumericRangeFilter.NewFloatRange("weight", 0.03f, 0.10f, true, true);
Accepts all documents whose float valued "weight" field
ranges from 0.03 to 0.10, inclusive.
See Numeric
@since 2.9
Inheritance
System.Object
NumericRangeFilter<T>
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public sealed class NumericRangeFilter<T> : MultiTermQueryWrapperFilter<NumericRangeQuery<T>> where T : struct, IComparable<T>
Type Parameters
Name | Description |
---|---|
T |
Properties
| Improve this Doc View SourceIncludesMax
Returns true
if the upper endpoint is inclusive
Declaration
public bool IncludesMax { get; }
Property Value
Type | Description |
---|---|
System. |
IncludesMin
Returns true
if the lower endpoint is inclusive
Declaration
public bool IncludesMin { get; }
Property Value
Type | Description |
---|---|
System. |
Max
Returns the upper value of this range filter
Declaration
public T? Max { get; }
Property Value
Type | Description |
---|---|
System. |
Min
Returns the lower value of this range filter
Declaration
public T? Min { get; }
Property Value
Type | Description |
---|---|
System. |
PrecisionStep
Returns the precision step.
Declaration
public int PrecisionStep { get; }
Property Value
Type | Description |
---|---|
System. |