Lucene++ - a full-featured, c++ search engine
API Documentation


TermRangeFilter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef TERMRANGEFILTER_H
8 #define TERMRANGEFILTER_H
9 
11 
12 namespace Lucene {
13 
23 public:
33  TermRangeFilter(const String& fieldName, StringValue lowerTerm, StringValue upperTerm, bool includeLower,
34  bool includeUpper, CollatorPtr collator = CollatorPtr());
35 
36  virtual ~TermRangeFilter();
37 
39 
40 public:
42  static TermRangeFilterPtr Less(const String& fieldName, StringValue upperTerm);
43 
45  static TermRangeFilterPtr More(const String& fieldName, StringValue lowerTerm);
46 
48  String getField();
49 
51  String getLowerTerm();
52 
54  String getUpperTerm();
55 
57  bool includesLower();
58 
60  bool includesUpper();
61 
63  CollatorPtr getCollator();
64 };
65 
66 }
67 
68 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
MultiTermQueryWrapperFilter.h
Lucene::CollatorPtr
boost::shared_ptr< Collator > CollatorPtr
Definition: LuceneTypes.h:525
Lucene::TermRangeFilterPtr
boost::shared_ptr< TermRangeFilter > TermRangeFilterPtr
Definition: LuceneTypes.h:464
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::MultiTermQueryWrapperFilter
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
Definition: MultiTermQueryWrapperFilter.h:22
Lucene::TermRangeFilter
A Filter that restricts search results to a range of term values in a given field.
Definition: TermRangeFilter.h:22

clucene.sourceforge.net