Class SnowballAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.lucene.analysis.snowball.SnowballAnalyzer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
@Deprecated public final class SnowballAnalyzer extends Analyzer
Deprecated.(3.1) Use the language-specific analyzer in modules/analysis instead. This analyzer will be removed in Lucene 5.0FiltersStandardTokenizer
withStandardFilter
,LowerCaseFilter
,StopFilter
andSnowballFilter
. 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 inEnglishStemmer
is named "English".NOTE: This class uses the same
Version
dependent settings asStandardAnalyzer
, with the following addition:- As of 3.1, uses
TurkishLowerCaseFilter
for Turkish language.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description SnowballAnalyzer(Version matchVersion, java.lang.String name)
Deprecated.Builds the named analyzer with no stop words.SnowballAnalyzer(Version matchVersion, java.lang.String name, CharArraySet stopWords)
Deprecated.Builds the named analyzer with the given stop words.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Analyzer.TokenStreamComponents
createComponents(java.lang.String fieldName, java.io.Reader reader)
Deprecated.Constructs aStandardTokenizer
filtered by aStandardFilter
, aLowerCaseFilter
, aStopFilter
, and aSnowballFilter
-
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, tokenStream, tokenStream
-
-
-
-
Constructor Detail
-
SnowballAnalyzer
public SnowballAnalyzer(Version matchVersion, java.lang.String name)
Deprecated.Builds the named analyzer with no stop words.
-
SnowballAnalyzer
public SnowballAnalyzer(Version matchVersion, java.lang.String name, CharArraySet stopWords)
Deprecated.Builds the named analyzer with the given stop words.
-
-
Method Detail
-
createComponents
public Analyzer.TokenStreamComponents createComponents(java.lang.String fieldName, java.io.Reader reader)
Deprecated.Constructs aStandardTokenizer
filtered by aStandardFilter
, aLowerCaseFilter
, aStopFilter
, and aSnowballFilter
-
-