Computes the amount of a sloppy phrase match, based on an edit distance. This value is summed for each sloppy phrase match in a document to form the frequency that is passed to {@link #Tf(float)}.

A phrase match with a small edit distance to a document passage more closely matches the document, so implementations of this method usually return larger values when the edit distance is small and smaller values when it is large.

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

Syntax

C#
public abstract float SloppyFreq(
	int distance
)
Visual Basic
Public MustOverride Function SloppyFreq ( _
	distance As Integer _
) As Single
Visual C++
public:
virtual float SloppyFreq(
	int distance
) abstract

Parameters

distance
Type: System..::..Int32
the edit distance of this sloppy phrase match

Return Value

the frequency increment for this match

See Also