Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef TERMRANGEFILTER_H
8 #define TERMRANGEFILTER_H
33 TermRangeFilter(
const String& fieldName, StringValue lowerTerm, StringValue upperTerm,
bool includeLower,
virtual ~TermRangeFilter()
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
bool includesLower()
Returns true if the lower endpoint is inclusive.
boost::shared_ptr< Collator > CollatorPtr
Definition: LuceneTypes.h:525
String getUpperTerm()
Returns the upper value of this range filter.
boost::shared_ptr< TermRangeFilter > TermRangeFilterPtr
Definition: LuceneTypes.h:464
Definition: AbstractAllTermDocs.h:12
String getField()
Returns the field name for this filter.
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...
bool includesUpper()
Returns true if the upper endpoint is inclusive.
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
Definition: MultiTermQueryWrapperFilter.h:22
CollatorPtr getCollator()
Returns the collator used to determine range inclusion, if any.
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.
A Filter that restricts search results to a range of term values in a given field.
Definition: TermRangeFilter.h:22
static TermRangeFilterPtr More(const String &fieldName, StringValue lowerTerm)
Constructs a filter for field fieldName matching greater than or equal to lowerTerm.
clucene.sourceforge.net