Method MakeStopSet
MakeStopSet(String[])
Builds a Set from an array of stop words, appropriate for passing into the StopFilter constructor. This permits this stopWords construction to be cached once when an Analyzer is constructed.
Declaration
public static ISet<string> MakeStopSet(params string[] stopWords)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | stopWords |
Returns
Type | Description |
---|---|
ISet<System.String> |
MakeStopSet(IList<Object>)
Builds a Set from an array of stop words, appropriate for passing into the StopFilter constructor. This permits this stopWords construction to be cached once when an Analyzer is constructed.
Declaration
public static ISet<string> MakeStopSet(IList<object> stopWords)
Parameters
Type | Name | Description |
---|---|---|
IList<System.Object> | stopWords | A list of strings or char[] or any other ToString()-able list representing the stop words |
Returns
Type | Description |
---|---|
ISet<System.String> |
MakeStopSet(String[], Boolean)
Declaration
public static ISet<string> MakeStopSet(string[] stopWords, bool ignoreCase)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | stopWords | An array of stopwords |
System.Boolean | ignoreCase | If true, all words are lower cased first. |
Returns
Type | Description |
---|---|
ISet<System.String> | a Set containing the words |
MakeStopSet(IList<Object>, Boolean)
Declaration
public static ISet<string> MakeStopSet(IList<object> stopWords, bool ignoreCase)
Parameters
Type | Name | Description |
---|---|---|
IList<System.Object> | stopWords | A List of Strings or char[] or any other toString()-able list representing the stopwords |
System.Boolean | ignoreCase | if true, all words are lower cased first |
Returns
Type | Description |
---|---|
ISet<System.String> | A Set (CharArraySet)containing the words |