Class Range
Base class for a single labeled range.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.Facet.dll
Syntax
public abstract class Range : object
Constructors
Name | Description |
---|---|
Range(String) | Sole constructor. |
Properties
Name | Description |
---|---|
Label | Label that identifies this range. |
Methods
Name | Description |
---|---|
FailNoMatch() | Invoke this for a useless range. |
GetFilter(ValueSource) | Returns a new Filter accepting only documents in this range. This filter is not general-purpose; you should either use it with DrillSideways by adding it to Add(String, Filter), or pass it to FilteredQuery using its QUERY_FIRST_FILTER_STRATEGY. If the ValueSource is static, e.g. an indexed numeric field, then it may be more efficient to use NumericRangeFilter. |
GetFilter(Filter, ValueSource) | Returns a new Filter accepting only documents
in this range. This filter is not general-purpose;
you should either use it with DrillSideways by
adding it to Add(String, Filter), or pass it to
FilteredQuery using its
QUERY_FIRST_FILTER_STRATEGY.
If the ValueSource is static, e.g. an indexed numeric
field, then it may be more efficient to use
NumericRangeFilter. The provided |