Lucene.Net 1.4.3 Class Library

WordlistLoader.GetWordSet Method 

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

public static Hashtable GetWordSet(
   FileInfo wordfile
);

Parameters

wordfile
File containing the wordlist

Return Value

A HashSet with the file's words

See Also

WordlistLoader Class | Lucene.Net.Analysis.DE Namespace