apoc.text.hammingDistance
Function APOC Core
apoc.text.hammingDistance(text1, text2) - compare the given strings with the Hamming distance algorithm.
Usage Examples
RETURN apoc.text.hammingDistance("Neo4j", "Neo4j") AS output;| output | 
|---|
| 0 | 
RETURN apoc.text.hammingDistance("Neo4j", "Neoj4") AS output;| output | 
|---|
| 2 | 
The provided strings must be the same length, otherwise this procedure will throw an exception, as shown in the example below:
RETURN apoc.text.hammingDistance("Neo4j Aura", "Neo4j Graph Database") AS output;| Failed to invoke function  |