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

LengthFilter.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 LENGTHFILTER_H
8 #define LENGTHFILTER_H
9
10 #include "TokenFilter.h"
11
12 namespace Lucene {
13
15 class LPPAPI LengthFilter : public TokenFilter {
16 public:
18 LengthFilter(const TokenStreamPtr& input, int32_t min, int32_t max);
19 virtual ~LengthFilter();
20
21 LUCENE_CLASS(LengthFilter);
22
23 public:
24 int32_t min;
25 int32_t max;
26
27 protected:
28 TermAttributePtr termAtt;
29
30 public:
32 virtual bool incrementToken();
33 };
34
35 }
36
37 #endif
Lucene::LengthFilter::termAtt
TermAttributePtr termAtt
Definition: LengthFilter.h:28
Lucene::LengthFilter::max
int32_t max
Definition: LengthFilter.h:25
TokenFilter.h
Lucene::TermAttributePtr
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition: LuceneTypes.h:58
Lucene::LengthFilter
Removes words that are too long or too short from the stream.
Definition: LengthFilter.h:15
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::TokenFilter
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition: TokenFilter.h:18
Lucene::TokenStreamPtr
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63

clucene.sourceforge.net