Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
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);
184 friend class NumericRangeTermEnum;
bool maxInclusive
Definition: NumericRangeQuery.h:122
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
static NumericRangeQueryPtr newNumericRange(const String &field, int32_t precisionStep, NumericValue min, NumericValue max, bool minInclusive, bool maxInclusive)
Factory that creates a NumericRangeQuery, that queries a int, long or double range using the given pr...
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
NumericValue getMin()
Returns the lower value of this range query.
static NumericRangeQueryPtr newDoubleRange(const String &field, int32_t precisionStep, double min, double max, bool minInclusive, bool maxInclusive)
Factory that creates a NumericRangeFilter, that filters a double range using the given precisionStep.
boost::shared_ptr< NumericRangeQuery > NumericRangeQueryPtr
Definition: LuceneTypes.h:394
virtual FilteredTermEnumPtr getEnum(const IndexReaderPtr &reader)
Construct the enumeration to be used, expanding the pattern term.
NumericValue min
Definition: NumericRangeQuery.h:119
A Query that matches numeric values within a specified range. To use this, you must first index the n...
Definition: NumericRangeQuery.h:108
static NumericRangeQueryPtr newNumericRange(const String &field, NumericValue min, NumericValue max, bool minInclusive, bool maxInclusive)
Factory that creates a NumericRangeQuery, that queries a int, long or double range using the default ...
virtual int32_t hashCode()
Return hash code for this object.
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
NumericRangeQuery(const String &field, int32_t precisionStep, int32_t valSize, NumericValue min, NumericValue max, bool minInclusive, bool maxInclusive)
static NumericRangeQueryPtr newLongRange(const String &field, int64_t min, int64_t max, bool minInclusive, bool maxInclusive)
Factory that creates a NumericRangeFilter, that filters a long range using the default precisionStep ...
Definition: AbstractAllTermDocs.h:12
static NumericRangeQueryPtr newLongRange(const String &field, int32_t precisionStep, int64_t min, int64_t max, bool minInclusive, bool maxInclusive)
Factory that creates a NumericRangeFilter, that filters a long range using the given precisionStep.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
int32_t precisionStep
Definition: NumericRangeQuery.h:117
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
bool includesMin()
Returns true if the lower endpoint is inclusive.
static NumericRangeQueryPtr newDoubleRange(const String &field, double min, double max, bool minInclusive, bool maxInclusive)
Factory that creates a NumericRangeFilter, that filters a double range using the default precisionSte...
NumericValue getMax()
Returns the upper value of this range query.
virtual ~NumericRangeQuery()
static NumericRangeQueryPtr newIntRange(const String &field, int32_t min, int32_t max, bool minInclusive, bool maxInclusive)
Factory that creates a NumericRangeFilter, that filters a int range using the default precisionStep N...
static NumericRangeQueryPtr newIntRange(const String &field, int32_t precisionStep, int32_t min, int32_t max, bool minInclusive, bool maxInclusive)
Factory that creates a NumericRangeFilter, that filters a int range using the given precisionStep.
bool minInclusive
Definition: NumericRangeQuery.h:121
bool includesMax()
Returns true if the upper endpoint is inclusive.
NumericValue max
Definition: NumericRangeQuery.h:120
int32_t valSize
Definition: NumericRangeQuery.h:118
An abstract Query that matches documents containing a subset of terms provided by a {} enumeration.
Definition: MultiTermQuery.h:31
String getField()
Returns the field name for this query.
virtual String toString()
Prints a query to a string.
boost::shared_ptr< FilteredTermEnum > FilteredTermEnumPtr
Definition: LuceneTypes.h:365
clucene.sourceforge.net