7 #ifndef NUMERICRANGEFILTER_H 8 #define NUMERICRANGEFILTER_H 33 static NumericRangeFilterPtr newLongRange(
const String& field, int32_t precisionStep, int64_t min, int64_t max,
bool minInclusive,
bool maxInclusive);
37 static NumericRangeFilterPtr newLongRange(
const String& field, int64_t min, int64_t max,
bool minInclusive,
bool maxInclusive);
40 static NumericRangeFilterPtr newIntRange(
const String& field, int32_t precisionStep, int32_t min, int32_t max,
bool minInclusive,
bool maxInclusive);
44 static NumericRangeFilterPtr newIntRange(
const String& field, int32_t min, int32_t max,
bool minInclusive,
bool maxInclusive);
47 static NumericRangeFilterPtr newDoubleRange(
const String& field, int32_t precisionStep,
double min,
double max,
bool minInclusive,
bool maxInclusive);
51 static NumericRangeFilterPtr newDoubleRange(
const String& field,
double min,
double max,
bool minInclusive,
bool maxInclusive);
57 static NumericRangeFilterPtr newNumericRange(
const String& field, int32_t precisionStep, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
63 static NumericRangeFilterPtr newNumericRange(
const String& field, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
75 NumericValue getMin();
78 NumericValue getMax();
A Filter that only accepts numeric values within a specified range. To use this, you must first index...
Definition: NumericRangeFilter.h:24
boost::shared_ptr< NumericRangeFilter > NumericRangeFilterPtr
Definition: LuceneTypes.h:393
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< NumericRangeQuery > NumericRangeQueryPtr
Definition: LuceneTypes.h:394
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
Definition: MultiTermQueryWrapperFilter.h:22