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).

Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.Contrib.Analyzers (in Lucene.Net.Contrib.Analyzers.dll) Version: 2.9.2.1 (2.9.2.1)

Syntax

C#
public static Hashtable GetWordtable(
	TextReader reader
)
Visual Basic
Public Shared Function GetWordtable ( _
	reader As TextReader _
) As Hashtable
Visual C++
public:
static Hashtable^ GetWordtable(
	TextReader^ reader
)

Parameters

reader
Type: System.IO..::..TextReader
Reader containing the wordlist

Return Value

A Hashtable with the reader's words

See Also