|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.Analyzer org.apache.lucene.analysis.snowball.SnowballAnalyzer
@Deprecated public final class SnowballAnalyzer
Filters 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.
Constructor Summary | |
---|---|
SnowballAnalyzer(Version matchVersion,
String name)
Deprecated. Builds the named analyzer with no stop words. |
|
SnowballAnalyzer(Version matchVersion,
String name,
Set<?> stopWords)
Deprecated. Builds the named analyzer with the given stop words. |
|
SnowballAnalyzer(Version matchVersion,
String name,
String[] stopWords)
Deprecated. Use SnowballAnalyzer(Version, String, Set) instead. |
Method Summary | |
---|---|
TokenStream |
reusableTokenStream(String fieldName,
Reader reader)
Deprecated. Returns a (possibly reused) StandardTokenizer filtered by a
StandardFilter , a LowerCaseFilter ,
a StopFilter , and a SnowballFilter |
TokenStream |
tokenStream(String fieldName,
Reader reader)
Deprecated. Constructs a StandardTokenizer filtered by a StandardFilter , a LowerCaseFilter , a StopFilter ,
and a SnowballFilter |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
---|
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnowballAnalyzer(Version matchVersion, String name)
@Deprecated public SnowballAnalyzer(Version matchVersion, String name, String[] stopWords)
SnowballAnalyzer(Version, String, Set)
instead.
public SnowballAnalyzer(Version matchVersion, String name, Set<?> stopWords)
Method Detail |
---|
public TokenStream tokenStream(String fieldName, Reader reader)
StandardTokenizer
filtered by a StandardFilter
, a LowerCaseFilter
, a StopFilter
,
and a SnowballFilter
tokenStream
in class Analyzer
public TokenStream reusableTokenStream(String fieldName, Reader reader) throws IOException
StandardTokenizer
filtered by a
StandardFilter
, a LowerCaseFilter
,
a StopFilter
, and a SnowballFilter
reusableTokenStream
in class Analyzer
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |