|| apoc.text.distance - APOC 核心文档 - Neo4j 文档

apoc.text.distance

详情

语法

apoc.text.distance(text1, text2)

描述

使用 Levenshtein 距离算法比较两个给定的 STRING 值。

参数

名称

类型

描述

text1

STRING

用于与第二个字符串比较的第一个字符串。

text2

STRING

用于与第一个字符串比较的第二个字符串。

返回

INTEGER

使用示例

RETURN apoc.text.distance("Levenshtein", "Levenstein") AS output;
结果
输出

1

© . This site is unofficial and not affiliated with Neo4j, Inc.