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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

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
10 #include "MultiTermQueryWrapperFilter.h"
11
12 namespace Lucene
13 {
22 class LPPAPI TermRangeFilter : public MultiTermQueryWrapperFilter
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
39 LUCENE_CLASS(TermRangeFilter);
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