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

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

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PorterStemFilter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 {
33 public:
34 PorterStemFilter(TokenStreamPtr input);
35 virtual ~PorterStemFilter();
36
37 LUCENE_CLASS(PorterStemFilter);
38
39 protected:
40 PorterStemmerPtr stemmer;
41 TermAttributePtr termAtt;
42
43 public:
44 virtual bool incrementToken();
45 };
46 }
47
48 #endif

clucene.sourceforge.net