Method GetWordSet
GetWordSet(TextReader, CharArraySet)
Reads lines from a System.IO.TextReader and adds every line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the System.IO.TextReader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Declaration
public static CharArraySet GetWordSet(TextReader reader, CharArraySet result)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader | System.IO.TextReader containing the wordlist |
CharArraySet | result | the CharArraySet to fill with the readers words |
Returns
Type | Description |
---|---|
CharArraySet | the given CharArraySet with the reader's words |
GetWordSet(TextReader, LuceneVersion)
Reads lines from a System.IO.TextReader and adds every line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the System.IO.TextReader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Declaration
public static CharArraySet GetWordSet(TextReader reader, LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader | System.IO.TextReader containing the wordlist |
LuceneVersion | matchVersion | the LuceneVersion |
Returns
Type | Description |
---|---|
CharArraySet | A CharArraySet with the reader's words |
GetWordSet(TextReader, String, LuceneVersion)
Reads lines from a System.IO.TextReader and adds every non-comment line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the System.IO.TextReader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Declaration
public static CharArraySet GetWordSet(TextReader reader, string comment, LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader | System.IO.TextReader containing the wordlist |
System.String | comment | The string representing a comment. |
LuceneVersion | matchVersion | the LuceneVersion |
Returns
Type | Description |
---|---|
CharArraySet | A CharArraySet with the reader's words |
GetWordSet(TextReader, String, CharArraySet)
Reads lines from a System.IO.TextReader and adds every non-comment line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the System.IO.TextReader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Declaration
public static CharArraySet GetWordSet(TextReader reader, string comment, CharArraySet result)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader | System.IO.TextReader containing the wordlist |
System.String | comment | The string representing a comment. |
CharArraySet | result | the CharArraySet to fill with the readers words |
Returns
Type | Description |
---|---|
CharArraySet | the given CharArraySet with the reader's words |