apoc.text.distance

Function APOC Core

apoc.text.distance(text1, text2) - compare the given strings with the Levenshtein distance algorithm.

Signature

apoc.text.distance(text1 :: STRING?, text2 :: STRING?) :: (INTEGER?)

Input parameters

Name Type Default

text1

STRING?

null

text2

STRING?

null

Usage Examples

RETURN apoc.text.distance("Levenshtein", "Levenstein") AS output;
Table 1. Results
output

1