Create a new FuzzyQuery that will match terms with a similarity of at least
CopyC#
minimumSimilarity
to
CopyC#
term
. If a
CopyC#
prefixLength
> 0 is specified, a common prefix of that length is also required.
or if prefixLength < 0

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

Syntax

C#
public FuzzyQuery(
	Term term,
	float minimumSimilarity,
	int prefixLength
)
Visual Basic
Public Sub New ( _
	term As Term, _
	minimumSimilarity As Single, _
	prefixLength As Integer _
)
Visual C++
public:
FuzzyQuery(
	Term^ term, 
	float minimumSimilarity, 
	int prefixLength
)

Parameters

term
Type: Lucene.Net.Index..::..Term
the term to search for
minimumSimilarity
Type: System..::..Single
a value between 0 and 1 to set the required similarity between the query term and the matching terms. For example, for a
CopyC#
minimumSimilarity
of
CopyC#
0.5
a term of the same length as the query term is considered similar to the query term if the edit distance between both terms is less than
CopyC#
length(term)*0.5
prefixLength
Type: System..::..Int32
length of common (non-fuzzy) prefix

See Also