Constructor for enumeration of all terms from specified
CopyC#
reader
which share a prefix of length
CopyC#
prefixLength
with
CopyC#
term
and which have a fuzzy similarity >
CopyC#
minSimilarity
.

After calling the constructor the enumeration is already pointing to the first valid term if such a term exists.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public FuzzyTermEnum(
	IndexReader reader,
	Term term,
	float minSimilarity,
	int prefixLength
)
Visual Basic
Public Sub New ( _
	reader As IndexReader, _
	term As Term, _
	minSimilarity As Single, _
	prefixLength As Integer _
)
Visual C++
public:
FuzzyTermEnum(
	IndexReader^ reader, 
	Term^ term, 
	float minSimilarity, 
	int prefixLength
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
Delivers terms.
term
Type: Lucene.Net.Index..::..Term
Pattern term.
minSimilarity
Type: System..::..Single
Minimum required similarity for terms from the reader. Default value is 0.5f.
prefixLength
Type: System..::..Int32
Length of required common prefix. Default value is 0.

See Also