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
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_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
TokenFilter.h
Lucene::PorterStemFilter::stemmer
PorterStemmerPtr stemmer
Definition PorterStemFilter.h:39
Lucene::PorterStemFilter::incrementToken
virtual bool incrementToken()
Consumers (ie., IndexWriter) use this method to advance the stream to the next token....
Lucene::PorterStemFilter::termAtt
TermAttributePtr termAtt
Definition PorterStemFilter.h:40
Lucene::PorterStemFilter::~PorterStemFilter
virtual ~PorterStemFilter()
Lucene::PorterStemFilter::PorterStemFilter
PorterStemFilter(const TokenStreamPtr &input)
Lucene::TokenFilter::TokenFilter
TokenFilter(const TokenStreamPtr &input)
Construct a token stream filtering the given input.
Lucene::TokenFilter::input
TokenStreamPtr input
The source of tokens for this filter.
Definition TokenFilter.h:30
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::TokenStreamPtr
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition LuceneTypes.h:63
Lucene::PorterStemmerPtr
boost::shared_ptr< PorterStemmer > PorterStemmerPtr
Definition LuceneTypes.h:44
Lucene::TermAttributePtr
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition LuceneTypes.h:58

clucene.sourceforge.net