The NumericRangeFilter type exposes the following members.

Methods

  NameDescription
Public methodBits Obsolete.
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
(Inherited from MultiTermQueryWrapperFilter.)
Public methodClearTotalNumberOfTerms
Expert: Resets the counting of unique terms. Do this before executing the filter.
(Inherited from MultiTermQueryWrapperFilter.)
Public methodEquals (Inherited from MultiTermQueryWrapperFilter.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetDocIdSet
Returns a DocIdSet with documents that should be permitted in search results.
(Inherited from MultiTermQueryWrapperFilter.)
Public methodGetField
Returns the field name for this filter
Public methodGetHashCode (Inherited from MultiTermQueryWrapperFilter.)
Public methodGetMax
Returns the upper value of this range filter
Public methodGetMin
Returns the lower value of this range filter
Public methodGetTotalNumberOfTerms
Expert: Return the number of unique terms visited during execution of the filter. If there are many of them, you may consider using another filter type or optimize your total term count in index.

This method is not thread safe, be sure to only call it when no filter is running! If you re-use the same filter instance for another search, be sure to first reset the term counter with {@link #clearTotalNumberOfTerms}.

(Inherited from MultiTermQueryWrapperFilter.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIncludesMax
Returns
CopyC#
true
if the upper endpoint is inclusive
Public methodIncludesMin
Returns
CopyC#
true
if the lower endpoint is inclusive
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNewDoubleRange(String, Double, Double, Boolean, Boolean)
Factory that creates a
CopyC#
NumericRangeFilter
, that queries a
CopyC#
double
range using the default
CopyC#
precisionStep
{@link NumericUtils#PRECISION_STEP_DEFAULT} (4). You can have half-open ranges (which are in fact </≤ or >/≥ queries) by setting the min or max value to
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
Public methodStatic memberNewDoubleRange(String, Int32, Double, Double, Boolean, Boolean)
Factory that creates a
CopyC#
NumericRangeFilter
, that filters a
CopyC#
double
range using the given
CopyC#
precisionStep
. You can have half-open ranges (which are in fact </≤ or >/≥ queries) by setting the min or max value to
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
Public methodStatic memberNewFloatRange(String, Single, Single, Boolean, Boolean)
Factory that creates a
CopyC#
NumericRangeFilter
, that queries a
CopyC#
float
range using the default
CopyC#
precisionStep
{@link NumericUtils#PRECISION_STEP_DEFAULT} (4). You can have half-open ranges (which are in fact </≤ or >/≥ queries) by setting the min or max value to
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
Public methodStatic memberNewFloatRange(String, Int32, Single, Single, Boolean, Boolean)
Factory that creates a
CopyC#
NumericRangeFilter
, that filters a
CopyC#
float
range using the given
CopyC#
precisionStep
. You can have half-open ranges (which are in fact </≤ or >/≥ queries) by setting the min or max value to
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
Public methodStatic memberNewIntRange(String, ValueType, ValueType, Boolean, Boolean)
Factory that creates a
CopyC#
NumericRangeFilter
, that queries a
CopyC#
int
range using the default
CopyC#
precisionStep
{@link NumericUtils#PRECISION_STEP_DEFAULT} (4). You can have half-open ranges (which are in fact </≤ or >/≥ queries) by setting the min or max value to
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
Public methodStatic memberNewIntRange(String, Int32, ValueType, ValueType, Boolean, Boolean)
Factory that creates a
CopyC#
NumericRangeFilter
, that filters a
CopyC#
int
range using the given
CopyC#
precisionStep
. You can have half-open ranges (which are in fact </≤ or >/≥ queries) by setting the min or max value to
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
Public methodStatic memberNewLongRange(String, ValueType, ValueType, Boolean, Boolean)
Factory that creates a
CopyC#
NumericRangeFilter
, that queries a
CopyC#
long
range using the default
CopyC#
precisionStep
{@link NumericUtils#PRECISION_STEP_DEFAULT} (4). You can have half-open ranges (which are in fact </≤ or >/≥ queries) by setting the min or max value to
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
Public methodStatic memberNewLongRange(String, Int32, ValueType, ValueType, Boolean, Boolean)
Factory that creates a
CopyC#
NumericRangeFilter
, that filters a
CopyC#
long
range using the given
CopyC#
precisionStep
. You can have half-open ranges (which are in fact </≤ or >/≥ queries) by setting the min or max value to
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.
Public methodToString (Inherited from MultiTermQueryWrapperFilter.)

See Also