apoc.text.fuzzyMatch
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
text1
is shorter than three characters, the maximum Levenshtein distance allowed forapoc.text.fuzzyMatch
to returntrue
is 0. -
If
text1
is shorter than five characters, the maximum Levenshtein distance allowed forapoc.text.fuzzyMatch
to returntrue
is 1. -
For all other
STRING
values, the maximum Levenshtein distance allowed forapoc.text.fuzzyMatch
to be returntrue
is 2.
To calculate the distance between two STRING
values, use apoc.text.distance
.