Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
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
12
namespace
Lucene
{
13
15
class
LPPAPI
StandardFilter
:
public
TokenFilter
{
16
public
:
18
StandardFilter
(
const
TokenStreamPtr
&
input
);
19
virtual
~StandardFilter
();
20
21
LUCENE_CLASS
(
StandardFilter
);
22
23
protected
:
24
TypeAttributePtr
typeAtt
;
25
TermAttributePtr
termAtt
;
26
27
protected
:
28
static
const
String&
APOSTROPHE_TYPE
();
29
static
const
String&
ACRONYM_TYPE
();
30
31
public
:
36
virtual
bool
incrementToken
();
37
};
38
39
}
40
41
#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
TokenFilter.h
Lucene::StandardFilter::ACRONYM_TYPE
static const String & ACRONYM_TYPE()
Lucene::StandardFilter::APOSTROPHE_TYPE
static const String & APOSTROPHE_TYPE()
Lucene::StandardFilter::typeAtt
TypeAttributePtr typeAtt
Definition
StandardFilter.h:24
Lucene::StandardFilter::~StandardFilter
virtual ~StandardFilter()
Lucene::StandardFilter::termAtt
TermAttributePtr termAtt
Definition
StandardFilter.h:25
Lucene::StandardFilter::StandardFilter
StandardFilter(const TokenStreamPtr &input)
Construct filtering input.
Lucene::StandardFilter::incrementToken
virtual bool incrementToken()
Returns the next token in the stream, or null at EOS.
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::TermAttributePtr
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition
LuceneTypes.h:58
Lucene::TypeAttributePtr
boost::shared_ptr< TypeAttribute > TypeAttributePtr
Definition
LuceneTypes.h:64
clucene.sourceforge.net