Method LoadStopwordSet
LoadStopwordSet(Boolean, Type, String, String)
Creates a CharArraySet from an embedded resource associated with a class. (See System.Reflection.Assembly.GetManifestResourceStream(System.String)).
Declaration
protected static CharArraySet LoadStopwordSet(bool ignoreCase, Type aClass, string resource, string comment)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ignoreCase |
|
System.Type | aClass | a class that is associated with the given stopwordResource |
System.String | resource | name of the resource file associated with the given class |
System.String | comment | comment string to ignore in the stopword file |
Returns
Type | Description |
---|---|
CharArraySet | a CharArraySet containing the distinct stopwords from the given file |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if loading the stopwords throws an System.IO.IOException |
LoadStopwordSet(FileInfo, LuceneVersion)
Creates a CharArraySet from a file.
Declaration
protected static CharArraySet LoadStopwordSet(FileInfo stopwords, LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | stopwords | the stopwords file to load |
LuceneVersion | matchVersion | the Lucene version for cross version compatibility |
Returns
Type | Description |
---|---|
CharArraySet | a CharArraySet containing the distinct stopwords from the given file |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if loading the stopwords throws an System.IO.IOException |
LoadStopwordSet(TextReader, LuceneVersion)
Creates a CharArraySet from a file.
Declaration
protected static CharArraySet LoadStopwordSet(TextReader stopwords, LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | stopwords | the stopwords reader to load |
LuceneVersion | matchVersion | the Lucene version for cross version compatibility |
Returns
Type | Description |
---|---|
CharArraySet | a CharArraySet containing the distinct stopwords from the given reader |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if loading the stopwords throws an System.IO.IOException |