Apache Lucene.Net 2.4.0 Class Library API

FuzzyQuery Constructor (Term, Single, Int32)

Create a new FuzzyQuery that will match terms with a similarity of at least

minimumSimilarity
to
term
. If a
prefixLength
> 0 is specified, a common prefix of that length is also required.

public FuzzyQuery(
   Term term,
   float minimumSimilarity,
   int prefixLength
);

Parameters

term
the term to search for
minimumSimilarity
a value between 0 and 1 to set the required similarity between the query term and the matching terms. For example, for a
minimumSimilarity
of
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
length(term)*0.5
prefixLength
length of common (non-fuzzy) prefix

See Also

FuzzyQuery Class | Lucene.Net.Search Namespace | FuzzyQuery Constructor Overload List