DotLucene 1.4 API Documentation |

# QueryParser.GetFuzzyQuery Method (String, String)

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

protected internal virtual Query GetFuzzyQuery(
string field,
string termStr
);

#### Parameters

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

#### 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 | QueryParser.GetFuzzyQuery Overload List