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

TermRangeTermEnum.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 TERMRANGETERMENUM_H
8 #define TERMRANGETERMENUM_H
9
10 #include "FilteredTermEnum.h"
11
12 namespace Lucene {
13
18 class LPPAPI TermRangeTermEnum : public FilteredTermEnum {
19 public:
34 TermRangeTermEnum(const IndexReaderPtr& reader, const String& field, StringValue lowerTermText, StringValue upperTermText,
35 bool includeLower, bool includeUpper, const CollatorPtr& collator);
36
37 virtual ~TermRangeTermEnum();
38
39 LUCENE_CLASS(TermRangeTermEnum);
40
41 protected:
42 CollatorPtr collator;
43 bool _endEnum;
44 String field;
45 StringValue upperTermText;
46 StringValue lowerTermText;
47 bool includeLower;
48 bool includeUpper;
49
50 public:
51 virtual double difference();
52
53 protected:
54 virtual bool endEnum();
55 virtual bool termCompare(const TermPtr& term);
56 };
57
58 }
59
60 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::TermRangeTermEnum::includeLower
bool includeLower
Definition: TermRangeTermEnum.h:47
Lucene::TermPtr
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
Lucene::FilteredTermEnum
Abstract class for enumerating a subset of all terms.
Definition: FilteredTermEnum.h:18
Lucene::TermRangeTermEnum::lowerTermText
StringValue lowerTermText
Definition: TermRangeTermEnum.h:46
Lucene::CollatorPtr
boost::shared_ptr< Collator > CollatorPtr
Definition: LuceneTypes.h:525
Lucene::TermRangeTermEnum::upperTermText
StringValue upperTermText
Definition: TermRangeTermEnum.h:45
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::TermRangeTermEnum::includeUpper
bool includeUpper
Definition: TermRangeTermEnum.h:48
FilteredTermEnum.h
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
Lucene::TermRangeTermEnum
Subclass of FilteredTermEnum for enumerating all terms that match the specified range parameters.
Definition: TermRangeTermEnum.h:18
Lucene::TermRangeTermEnum::field
String field
Definition: TermRangeTermEnum.h:44
Lucene::TermRangeTermEnum::_endEnum
bool _endEnum
Definition: TermRangeTermEnum.h:43

clucene.sourceforge.net