Apache Lucene.Net 2.4.0 Class Library API

QueryParser.GetFuzzyQuery Method 

Factory method for generating a query (similar to {@link #getWildcardQuery}). Called when parser parses an input term token that has the fuzzy suffix (~) appended.

public virtual Query GetFuzzyQuery(
   string field,
   string termStr,
   float minSimilarity
);

Parameters

field
Name of the field query will use.
termStr
Term token to use for building term for the query
minSimilarity

Return Value

Resulting {@link Query} built for the term

Exceptions

Exception Type Condition
ParseException throw in overridden method to disallow

See Also

QueryParser Class | Lucene.Net.QueryParsers Namespace