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 // Copyright (c) 2009-2011 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  {
24  public:
34  TermRangeFilter(const String& fieldName, StringValue lowerTerm, StringValue upperTerm, bool includeLower,
35  bool includeUpper, CollatorPtr collator = CollatorPtr());
36 
37  virtual ~TermRangeFilter();
38 
40 
41  public:
43  static TermRangeFilterPtr Less(const String& fieldName, StringValue upperTerm);
44 
46  static TermRangeFilterPtr More(const String& fieldName, StringValue lowerTerm);
47 
49  String getField();
50 
52  String getLowerTerm();
53 
55  String getUpperTerm();
56 
58  bool includesLower();
59 
61  bool includesUpper();
62 
64  CollatorPtr getCollator();
65  };
66 }
67 
68 #endif

clucene.sourceforge.net