How to use apoc.text.levenshteinDistance?

Hello :slight_smile:

Seeing the APOC documentation i'm trying to use apoc.text.levenshteinDistance procedure.
CALL apoc.text.levenshteinDistance('test', 'NOE_ALT1aVX')

Unfortunately, I've this error message :
Neo.ClientError.Procedure.ProcedureNotFound: There is no procedure with the name apoc.text.levenshteinDistance registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

There is some things to add in neo4j.conf ?

By advance, thanks you all :slight_smile:

Have a nice day

Up! :slight_smile:

I need help... :slight_smile:


apoc.text.levenshteinDistance() is a function, not a procedure, so you don't need to use the CALL ... YIELD syntax. Just use it inline:

RETURN apoc.text.levenshteinDistance('test', 'NOE_ALT1aVX')
1 Like