7#ifndef TERMRANGEQUERY_H
8#define TERMRANGEQUERY_H
42 TermRangeQuery(
const String& fieldName, StringValue lowerTerm, StringValue upperTerm,
bool includeLower,
58 using MultiTermQuery::toString;
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
An abstract Query that matches documents containing a subset of terms provided by a FilteredTermEnum ...
Definition MultiTermQuery.h:31
A Query that matches documents within an range of terms.
Definition TermRangeQuery.h:21
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
bool includesLower()
Returns true if the lower endpoint is inclusive.
String field
Definition TermRangeQuery.h:53
StringValue upperTerm
Definition TermRangeQuery.h:51
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
bool includesUpper()
Returns true if the upper endpoint is inclusive.
virtual FilteredTermEnumPtr getEnum(const IndexReaderPtr &reader)
Construct the enumeration to be used, expanding the pattern term.
bool includeUpper
Definition TermRangeQuery.h:55
String getField()
Returns the field name for this query.
StringValue lowerTerm
Definition TermRangeQuery.h:50
String getLowerTerm()
Returns the lower value of this range query.
TermRangeQuery(const String &fieldName, StringValue lowerTerm, StringValue upperTerm, bool includeLower, bool includeUpper, CollatorPtr collator=CollatorPtr())
Constructs a query selecting all terms greater/equal than lowerTerm but less/equal than upperTerm.
CollatorPtr getCollator()
Returns the collator used to determine range inclusion, if any.
virtual ~TermRangeQuery()
CollatorPtr collator
Definition TermRangeQuery.h:52
virtual int32_t hashCode()
Return hash code for this object.
String getUpperTerm()
Returns the upper value of this range query.
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
bool includeLower
Definition TermRangeQuery.h:54
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< Collator > CollatorPtr
Definition LuceneTypes.h:525
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157
boost::shared_ptr< FilteredTermEnum > FilteredTermEnumPtr
Definition LuceneTypes.h:365