Method MakeStopSet
MakeStopSet(LuceneVersion, String[])
Builds a CharArraySet 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 CharArraySet MakeStopSet(LuceneVersion matchVersion, params string[] stopWords)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | LuceneVersion to enable correct Unicode 4.0 behavior in the returned set if Version > 3.0 |
System.String[] | stopWords | An array of stopwords |
Returns
Type | Description |
---|---|
CharArraySet |
See Also
MakeStopSet<T1>(LuceneVersion, IList<T1>)
Builds a CharArraySet 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 CharArraySet MakeStopSet<T1>(LuceneVersion matchVersion, IList<T1> stopWords)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | LuceneVersion to enable correct Unicode 4.0 behavior in the returned set if Version > 3.0 |
System.Collections.Generic.IList<T1> | stopWords | A List of System.Strings or char[] or any other ToString()-able list representing the stopwords |
Returns
Type | Description |
---|---|
CharArraySet | A Set (CharArraySet) containing the words |
Type Parameters
Name | Description |
---|---|
T1 |
See Also
MakeStopSet(LuceneVersion, String[], Boolean)
Creates a stopword set from the given stopword array.
Declaration
public static CharArraySet MakeStopSet(LuceneVersion matchVersion, string[] stopWords, bool ignoreCase)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | LuceneVersion to enable correct Unicode 4.0 behavior in the returned set if Version > 3.0 |
System.String[] | stopWords | An array of stopwords |
System.Boolean | ignoreCase | If true, all words are lower cased first. |
Returns
Type | Description |
---|---|
CharArraySet | a Set (CharArraySet) containing the words |
MakeStopSet<T1>(LuceneVersion, IList<T1>, Boolean)
Creates a stopword set from the given stopword list.
Declaration
public static CharArraySet MakeStopSet<T1>(LuceneVersion matchVersion, IList<T1> stopWords, bool ignoreCase)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | LuceneVersion to enable correct Unicode 4.0 behavior in the returned set if Version > 3.0 |
System.Collections.Generic.IList<T1> | stopWords | A List of System.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 |
---|---|
CharArraySet | A Set (CharArraySet) containing the words |
Type Parameters
Name | Description |
---|---|
T1 |