Lucene.Net
3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
|
Inherits SpellChecker.Net.Search.Spell.StringDistance.
Public Member Functions | |
float | GetDistance (String s1, String s2) |
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. | |
Properties | |
float | Threshold [get, set] |
Gets or sets the current value of the threshold used for adding the Winkler bonus. Set to a negative value to get the Jaro distance. The default value is 0.7. | |
Definition at line 26 of file JaroWinklerDistance.cs.
float SpellChecker.Net.Search.Spell.JaroWinklerDistance.GetDistance | ( | String | s1, |
String | s2 | ||
) |
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.
s1 | The first string. |
s2 | The second string. |
Implements SpellChecker.Net.Search.Spell.StringDistance.
Definition at line 108 of file JaroWinklerDistance.cs.
|
getset |
Gets or sets the current value of the threshold used for adding the Winkler bonus. Set to a negative value to get the Jaro distance. The default value is 0.7.
Definition at line 126 of file JaroWinklerDistance.cs.