Method GetFilter
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 fastMatchFilter
,
if non-null, will first be consulted, and only if
that is set for each document will the range then be
checked.
Declaration
public abstract Filter GetFilter(Filter fastMatchFilter, ValueSource valueSource)
Parameters
Type | Name | Description |
---|---|---|
Filter | fastMatchFilter | |
ValueSource | valueSource |
Returns
Type | Description |
---|---|
Filter |
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.
Declaration
public virtual Filter GetFilter(ValueSource valueSource)
Parameters
Type | Name | Description |
---|---|---|
ValueSource | valueSource |
Returns
Type | Description |
---|---|
Filter |