7#ifndef TERMRANGEFILTER_H
8#define TERMRANGEFILTER_H
33 TermRangeFilter(
const String& fieldName, StringValue lowerTerm, StringValue upperTerm,
bool includeLower,
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
Definition MultiTermQueryWrapperFilter.h:22
virtual ~TermRangeFilter()
String getUpperTerm()
Returns the upper value of this range filter.
bool includesLower()
Returns true if the lower endpoint is inclusive.
TermRangeFilter(const String &fieldName, StringValue lowerTerm, StringValue upperTerm, bool includeLower, bool includeUpper, CollatorPtr collator=CollatorPtr())
Warning: Using this constructor and supplying a non-null value in the collator parameter will cause e...
String getLowerTerm()
Returns the lower value of this range filter.
static TermRangeFilterPtr Less(const String &fieldName, StringValue upperTerm)
Constructs a filter for field fieldName matching less than or equal to upperTerm.
CollatorPtr getCollator()
Returns the collator used to determine range inclusion, if any.
String getField()
Returns the field name for this filter.
static TermRangeFilterPtr More(const String &fieldName, StringValue lowerTerm)
Constructs a filter for field fieldName matching greater than or equal to lowerTerm.
bool includesUpper()
Returns true if the upper endpoint is inclusive.
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< TermRangeFilter > TermRangeFilterPtr
Definition LuceneTypes.h:464
boost::shared_ptr< Collator > CollatorPtr
Definition LuceneTypes.h:525