org.apache.lucene.analysis.snowball

Class SnowballAnalyzer

public class SnowballAnalyzer extends Analyzer

Filters 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 Summary
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.
Method Summary
TokenStreamtokenStream(String fieldName, Reader reader)
Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter and a StopFilter.

Constructor Detail

SnowballAnalyzer

public SnowballAnalyzer(String name)
Builds the named analyzer with no stop words.

SnowballAnalyzer

public SnowballAnalyzer(String name, String[] stopWords)
Builds the named analyzer with the given stop words.

Method Detail

tokenStream

public TokenStream tokenStream(String fieldName, Reader reader)
Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter and a StopFilter.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.