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

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

- File List
- Globals

PorterStemFilter.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 PORTERSTEMFILTER_H
8 #define PORTERSTEMFILTER_H
9
10 #include "TokenFilter.h"
11
12 namespace Lucene {
13
31 class LPPAPI PorterStemFilter : public TokenFilter {
32 public:
33 PorterStemFilter(const TokenStreamPtr& input);
34 virtual ~PorterStemFilter();
35
36 LUCENE_CLASS(PorterStemFilter);
37
38 protected:
39 PorterStemmerPtr stemmer;
40 TermAttributePtr termAtt;
41
42 public:
43 virtual bool incrementToken();
44 };
45
46 }
47
48 #endif
Lucene::PorterStemFilter::termAtt
TermAttributePtr termAtt
Definition: PorterStemFilter.h:40
TokenFilter.h
Lucene::TermAttributePtr
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition: LuceneTypes.h:58
Lucene::PorterStemmerPtr
boost::shared_ptr< PorterStemmer > PorterStemmerPtr
Definition: LuceneTypes.h:44
Lucene::PorterStemFilter::stemmer
PorterStemmerPtr stemmer
Definition: PorterStemFilter.h:36
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
Lucene::PorterStemFilter
Transforms the token stream as per the Porter stemming algorithm. Note: the input to the stemming fil...
Definition: PorterStemFilter.h:31

clucene.sourceforge.net