@Deprecated public final class SnowballAnalyzer extends Analyzer
StandardTokenizer
with StandardFilter
, LowerCaseFilter
, StopFilter
and SnowballFilter
.
Available stemmers are listed in org.tartarus.snowball.ext. The name of a
stemmer is the part of the class name before "Stemmer", e.g., the stemmer in
EnglishStemmer
is named "English".
NOTE: This class uses the same Version
dependent settings as StandardAnalyzer
, with the following addition:
TurkishLowerCaseFilter
for Turkish language.
Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
Constructor and Description |
---|
SnowballAnalyzer(Version matchVersion,
String name)
Deprecated.
Builds the named analyzer with no stop words.
|
SnowballAnalyzer(Version matchVersion,
String name,
CharArraySet stopWords)
Deprecated.
Builds the named analyzer with the given stop words.
|
Modifier and Type | Method and Description |
---|---|
Analyzer.TokenStreamComponents |
createComponents(String fieldName,
Reader reader)
Deprecated.
Constructs a
StandardTokenizer filtered by a StandardFilter , a LowerCaseFilter , a StopFilter ,
and a SnowballFilter |
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, initReader, tokenStream, tokenStream
public SnowballAnalyzer(Version matchVersion, String name)
public SnowballAnalyzer(Version matchVersion, String name, CharArraySet stopWords)
public Analyzer.TokenStreamComponents createComponents(String fieldName, Reader reader)
StandardTokenizer
filtered by a StandardFilter
, a LowerCaseFilter
, a StopFilter
,
and a SnowballFilter
createComponents
in class Analyzer
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.