org.apache.lucene.analysis.snowball
public class SnowballAnalyzer extends Analyzer
StandardTokenizer
with StandardFilter
, LowerCaseFilter
, StopFilter
and SnowballFilter
.
Available stemmers are listed in net.sf.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".Constructor and Description |
---|
SnowballAnalyzer(String name)
Builds the named analyzer with no stop words.
|
SnowballAnalyzer(String name,
String[] stopWords)
Builds the named analyzer with the given stop words.
|
Modifier and Type | Method and Description |
---|---|
TokenStream |
tokenStream(String fieldName,
Reader reader)
|
getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
public SnowballAnalyzer(String name)
public TokenStream tokenStream(String fieldName, Reader reader)
tokenStream
in class Analyzer
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.