apoc.text.fuzzyMatchFunction
Syntax |
|
||
Description |
Performs a fuzzy match search of the two given |
||
Arguments |
Name |
Type |
Description |
|
|
The first string to be compared against the second. |
|
|
|
The second string to be compared against the first. |
|
Returns |
|
||
Fuzzy matching
The function apoc.text.fuzzyMatch determines whether two STRING values are similar based on their Levenshtein distance, returning true if they are considered similar and false if not.
-
If
text1is shorter than three characters, the maximum Levenshtein distance allowed forapoc.text.fuzzyMatchto returntrueis 0. -
If
text1is shorter than five characters, the maximum Levenshtein distance allowed forapoc.text.fuzzyMatchto returntrueis 1. -
For all other
STRINGvalues, the maximum Levenshtein distance allowed forapoc.text.fuzzyMatchto be returntrueis 2.
To calculate the distance between two STRING values, use apoc.text.distance.