syntax:functions:distance
This is an old revision of the document!
distance(text, text)
The edit distance between two text strings calculated as the Damerau-Levenshtein distance. It shows the degree of variance between the two strings. The bigger is the edit distance, the more different the strings are.
Example | Result |
---|---|
distance("cat", "cat") | 0 |
distance("cat", "cut") | 1 |
distance("cat", "dog") | 3 |
distance("cat", "Scott") | 3 |
Use cases: fuzzy matching, detection of mistyped words.
syntax/functions/distance.1519833574.txt.gz · Last modified: 2018/02/28 10:59 by dmitry