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.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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
| 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 | |
System.IO.TextReader | reader |
Returns
Type | Description |
---|---|
TokenStreamComponents |
Overrides
Implements
System.IDisposable