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 Lucene.Net.Util.LuceneVersion dependent settings as StandardAnalyzer, with the following addition:
- As of 3.1, uses TurkishLowerCaseFilter for Turkish language.
Implements
Inherited Members
Analyzer.Strategy
Analyzer.Dispose()
Analyzer.GLOBAL_REUSE_STRATEGY
Analyzer.PER_FIELD_REUSE_STRATEGY
Namespace: Lucene.Net.Analysis.Snowball
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Obsolete("(3.1) Use the language-specific analyzer in modules/analysis instead. This analyzer will be removed in Lucene 5.0.")]
public sealed class SnowballAnalyzer : Analyzer, IDisposable
Constructors
SnowballAnalyzer(LuceneVersion, string)
Builds the named analyzer with no stop words.
Declaration
public SnowballAnalyzer(LuceneVersion matchVersion, string name)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
string | name |
SnowballAnalyzer(LuceneVersion, string, CharArraySet)
Builds the named analyzer with the given stop words.
Declaration
public SnowballAnalyzer(LuceneVersion matchVersion, string name, CharArraySet stopWords)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
string | name | |
CharArraySet | stopWords |
Methods
CreateComponents(string, TextReader)
Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter, a StopFilter, and a SnowballFilter
Declaration
protected override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName | |
TextReader | reader |
Returns
Type | Description |
---|---|
TokenStreamComponents |