apoc.text.jaroWinklerDistance

Function

apoc.text.jaroWinklerDistance(text1 STRING, text2 STRING) - compares the two given STRING values using the Jaro-Winkler distance algorithm.

Signature

apoc.text.jaroWinklerDistance(text1 :: STRING, text2 :: STRING) :: FLOAT

Input parameters

Name Type Default

text1

STRING

null

text2

STRING

null

Usage Examples

RETURN apoc.text.jaroWinklerDistance("Neo4j", "Neo4j") AS output;
Table 1. Results
output

0.0

RETURN apoc.text.jaroWinklerDistance("Neo4j", "Neoj4") AS output;
Table 2. Results
output

0.046666666666666745

RETURN apoc.text.jaroWinklerDistance("Neo4j Aura", "Neo4j Graph Database") AS output;
Table 3. Results
output

0.15999999999999992