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
include
StopAnalyzer.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 STOPANALYZER_H
8
#define STOPANALYZER_H
9
10
#include "
Analyzer.h
"
11
12
namespace
Lucene {
13
18
class
LPPAPI
StopAnalyzer
:
public
Analyzer
{
19
public
:
21
StopAnalyzer
(
LuceneVersion::Version
matchVersion);
22
24
StopAnalyzer
(
LuceneVersion::Version
matchVersion,
HashSet<String>
stopWords);
25
27
StopAnalyzer
(
LuceneVersion::Version
matchVersion,
const
String& stopwordsFile);
28
30
StopAnalyzer
(
LuceneVersion::Version
matchVersion,
const
ReaderPtr
& stopwords);
31
32
virtual
~
StopAnalyzer
();
33
34
LUCENE_CLASS
(
StopAnalyzer
);
35
36
protected
:
37
HashSet<String>
stopWords
;
38
bool
enablePositionIncrements
;
39
40
static
const
wchar_t
* _ENGLISH_STOP_WORDS_SET[];
41
42
public
:
44
static
const
HashSet<String>
ENGLISH_STOP_WORDS_SET();
45
46
virtual
TokenStreamPtr
tokenStream(
const
String& fieldName,
const
ReaderPtr
& reader);
47
virtual
TokenStreamPtr
reusableTokenStream(
const
String& fieldName,
const
ReaderPtr
& reader);
48
};
49
50
}
51
52
#endif
clucene.sourceforge.net