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
TermRangeQuery.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 TERMRANGEQUERY_H
8 #define TERMRANGEQUERY_H
9
10 #include "MultiTermQuery.h"
11
12 namespace Lucene
13 {
21 class LPPAPI TermRangeQuery : public MultiTermQuery
22 {
23 public:
43 TermRangeQuery(const String& fieldName, StringValue lowerTerm, StringValue upperTerm, bool includeLower,
44 bool includeUpper, CollatorPtr collator = CollatorPtr());
45
46 virtual ~TermRangeQuery();
47
48 LUCENE_CLASS(TermRangeQuery);
49
50 protected:
51 StringValue lowerTerm;
52 StringValue upperTerm;
53 CollatorPtr collator;
54 String field;
55 bool includeLower;
56 bool includeUpper;
57
58 public:
59 using MultiTermQuery::toString;
60
62 String getField();
63
65 String getLowerTerm();
66
68 String getUpperTerm();
69
71 bool includesLower();
72
74 bool includesUpper();
75
77 CollatorPtr getCollator();
78
79 virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
80 virtual String toString(const String& field);
81 virtual int32_t hashCode();
82 virtual bool equals(LuceneObjectPtr other);
83
84 protected:
85 virtual FilteredTermEnumPtr getEnum(IndexReaderPtr reader);
86 };
87 }
88
89 #endif

clucene.sourceforge.net