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 LuceneVersion dependent settings as StandardAnalyzer, with the following addition:
- As of 3.1, uses TurkishLowerCaseFilter for Turkish language.
Inherited Members
Lucene.Net.Analysis.Analyzer.NewAnonymous(Func<, , >)
Lucene.Net.Analysis.Analyzer.NewAnonymous(Func<, , >, Lucene.Net.Analysis.ReuseStrategy)
Lucene.Net.Analysis.Analyzer.NewAnonymous(Func<, , >, Func<, , >)
Lucene.Net.Analysis.Analyzer.NewAnonymous(Func<, , >, Func<, , >, Lucene.Net.Analysis.ReuseStrategy)
Namespace: Lucene.Net.Analysis.Snowball
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class SnowballAnalyzer : Analyzer
Constructors
| Improve this Doc View SourceSnowballAnalyzer(LuceneVersion, String)
Builds the named analyzer with no stop words.
Declaration
public SnowballAnalyzer(LuceneVersion matchVersion, string name)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
System.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 | |
System.String | name | |
CharArraySet | stopWords |
Methods
| Improve this Doc View SourceCreateComponents(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 |
---|---|---|
System.String | fieldName | |
TextReader | reader |
Returns
Type | Description |
---|---|
TokenStreamComponents |