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

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

Syntax

C#
public virtual Query GetFuzzyQuery(
	string field,
	string termStr,
	float minSimilarity
)
Visual Basic
Public Overridable Function GetFuzzyQuery ( _
	field As String, _
	termStr As String, _
	minSimilarity As Single _
) As Query
Visual C++
public:
virtual Query^ GetFuzzyQuery(
	String^ field, 
	String^ termStr, 
	float minSimilarity
)

Parameters

field
Type: System..::..String
Name of the field query will use.
termStr
Type: System..::..String
Term token to use for building term for the query
minSimilarity
Type: System..::..Single

[Missing <param name="minSimilarity"/> documentation for "M:Lucene.Net.QueryParsers.QueryParser.GetFuzzyQuery(System.String,System.String,System.Single)"]

Return Value

Resulting {@link Query} built for the term

Exceptions

ExceptionCondition
Lucene.Net.QueryParsers..::..ParseExceptionthrow in overridden method to disallow

See Also