Apache Lucene.Net 2.4.0 Class Library API

WordlistLoader.GetWordSet Method (TextReader)

Reads lines from a Reader and adds every line as an entry to a HashSet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).

public static Hashtable GetWordSet(
   TextReader reader
);

Parameters

reader
Reader containing the wordlist

Return Value

A HashSet with the reader's words

See Also

WordlistLoader Class | Lucene.Net.Analysis Namespace | WordlistLoader.GetWordSet Overload List