Interface IStringDistance
Interface for string distances.
Namespace: Lucene.Net.Search.Spell
Assembly: Lucene.Net.Suggest.dll
Syntax
public interface IStringDistance
Methods
GetDistance(string, string)
Returns a float between 0 and 1 based on how similar the specified strings are to one another.
Returning a value of 1 means the specified strings are identical and 0 means the
string are maximally different.
Declaration
float GetDistance(string s1, string s2)
Parameters
Type | Name | Description |
---|---|---|
string | s1 | The first string. |
string | s2 | The second string. |
Returns
Type | Description |
---|---|
float | a float between 0 and 1 based on how similar the specified strings are to one another. |