Constructor PatternAnalyzer
PatternAnalyzer(LuceneVersion, Regex, Boolean, CharArraySet)
Constructs a new instance with the given parameters.
Declaration
public PatternAnalyzer(LuceneVersion matchVersion, Regex pattern, bool toLowerCase, CharArraySet stopWords)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | currently does nothing |
System.Text.RegularExpressions.Regex | pattern | a regular expression delimiting tokens |
System.Boolean | toLowerCase | if returns tokens after applying
String.toLowerCase()
|
CharArraySet | stopWords | if non-null, ignores all tokens that are contained in the given stop set (after previously having applied toLowerCase() if applicable). For example, created via MakeStopSet(LuceneVersion, String[])and/or WordlistLoaderas in
|