apoc.text.levenshteinDistance
Function
apoc.text.levenshteinDistance(text1 String, text2 String)
- compares the given strings using the Levenshtein distance algorithm.
Usage Examples
RETURN apoc.text.levenshteinDistance("Neo4j", "Neo4j") AS output;
output |
---|
0 |
RETURN apoc.text.levenshteinDistance("Neo4j", "Neoj4") AS output;
output |
---|
2 |
RETURN apoc.text.levenshteinDistance("Neo4j Aura", "Neo4j Graph Database") AS output;
output |
---|
13 |
Was this page helpful?