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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermRangeFilter.h
Go to the documentation of this file.
1 
2 // 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

clucene.sourceforge.net