7 #ifndef NUMERICRANGEQUERY_H
8 #define NUMERICRANGEQUERY_H
110 NumericRangeQuery(
const String& field, int32_t precisionStep, int32_t valSize, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
128 static NumericRangeQueryPtr newLongRange(
const String& field, int32_t precisionStep, int64_t min, int64_t max,
bool minInclusive,
bool maxInclusive);
132 static NumericRangeQueryPtr newLongRange(
const String& field, int64_t min, int64_t max,
bool minInclusive,
bool maxInclusive);
135 static NumericRangeQueryPtr newIntRange(
const String& field, int32_t precisionStep, int32_t min, int32_t max,
bool minInclusive,
bool maxInclusive);
139 static NumericRangeQueryPtr newIntRange(
const String& field, int32_t min, int32_t max,
bool minInclusive,
bool maxInclusive);
142 static NumericRangeQueryPtr newDoubleRange(
const String& field, int32_t precisionStep,
double min,
double max,
bool minInclusive,
bool maxInclusive);
146 static NumericRangeQueryPtr newDoubleRange(
const String& field,
double min,
double max,
bool minInclusive,
bool maxInclusive);
152 static NumericRangeQueryPtr newNumericRange(
const String& field, int32_t precisionStep, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
159 static NumericRangeQueryPtr newNumericRange(
const String& field, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
171 NumericValue getMin();
174 NumericValue getMax();
177 virtual String toString(
const String& field);
179 virtual int32_t hashCode();
184 friend class NumericRangeTermEnum;
virtual String toString()
Prints a query to a string.
bool minInclusive
Definition: NumericRangeQuery.h:121
A Query that matches numeric values within a specified range. To use this, you must first index the n...
Definition: NumericRangeQuery.h:108
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
int32_t valSize
Definition: NumericRangeQuery.h:118
int32_t precisionStep
Definition: NumericRangeQuery.h:117
bool maxInclusive
Definition: NumericRangeQuery.h:122
An abstract Query that matches documents containing a subset of terms provided by a FilteredTermEnum ...
Definition: MultiTermQuery.h:31
NumericValue max
Definition: NumericRangeQuery.h:120
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
NumericValue min
Definition: NumericRangeQuery.h:119
boost::shared_ptr< FilteredTermEnum > FilteredTermEnumPtr
Definition: LuceneTypes.h:365
boost::shared_ptr< NumericRangeQuery > NumericRangeQueryPtr
Definition: LuceneTypes.h:394