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


Loading...
Searching...
No Matches
StandardFilter.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 STANDARDFILTER_H
8#define STANDARDFILTER_H
9
10#include "TokenFilter.h"
11
12namespace Lucene {
13
15class LPPAPI StandardFilter : public TokenFilter {
16public:
19 virtual ~StandardFilter();
20
22
23protected:
26
27protected:
28 static const String& APOSTROPHE_TYPE();
29 static const String& ACRONYM_TYPE();
30
31public:
36 virtual bool incrementToken();
37};
38
39}
40
41#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Normalizes tokens extracted with StandardTokenizer.
Definition StandardFilter.h:15
static const String & ACRONYM_TYPE()
static const String & APOSTROPHE_TYPE()
TypeAttributePtr typeAtt
Definition StandardFilter.h:24
TermAttributePtr termAtt
Definition StandardFilter.h:25
StandardFilter(const TokenStreamPtr &input)
Construct filtering input.
virtual bool incrementToken()
Returns the next token in the stream, or null at EOS.
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< TypeAttribute > TypeAttributePtr
Definition LuceneTypes.h:64

clucene.sourceforge.net