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


Loading...
Searching...
No Matches
PorterStemFilter.h
Go to the documentation of this file.
1
2// 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
12namespace Lucene {
13
31class LPPAPI PorterStemFilter : public TokenFilter {
32public:
35
37
38protected:
41
42public:
43 virtual bool incrementToken();
44};
45
46}
47
48#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Transforms the token stream as per the Porter stemming algorithm. Note: the input to the stemming fil...
Definition PorterStemFilter.h:31
PorterStemmerPtr stemmer
Definition PorterStemFilter.h:39
virtual bool incrementToken()
Consumers (ie., IndexWriter) use this method to advance the stream to the next token....
TermAttributePtr termAtt
Definition PorterStemFilter.h:40
PorterStemFilter(const TokenStreamPtr &input)
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition TokenFilter.h:18
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition LuceneTypes.h:63
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition LuceneTypes.h:58
boost::shared_ptr< PorterStemmer > PorterStemmerPtr
Definition LuceneTypes.h:44

clucene.sourceforge.net