Constructor SmartChineseAnalyzer
SmartChineseAnalyzer(LuceneVersion)
Create a new SmartChineseAnalyzer, using the default stopword list.
Declaration
public SmartChineseAnalyzer(LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion |
SmartChineseAnalyzer(LuceneVersion, Boolean)
Create a new SmartChineseAnalyzer, optionally using the default stopword list.
The included default stopword list is simply a list of punctuation. If you do not use this list, punctuation will not be removed from the text!
Declaration
public SmartChineseAnalyzer(LuceneVersion matchVersion, bool useDefaultStopWords)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
System.Boolean | useDefaultStopWords |
|
SmartChineseAnalyzer(LuceneVersion, CharArraySet)
Create a new SmartChineseAnalyzer, using the provided CharArraySet of stopwords.
Note: the set should include punctuation, unless you want to index punctuation!
Declaration
public SmartChineseAnalyzer(LuceneVersion matchVersion, CharArraySet stopWords)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
CharArraySet | stopWords | CharArraySet of stopwords to use. |