【发布时间】:2014-01-05 22:45:25
【问题描述】:
在 Cypher 中处理属性时,您可以使用正则表达式来匹配属性值,如下所示:
Match (n)-[:IS_A]-() where (n:Course_Driving_001) and (n.name =~ '(?i).*criteria.*' or n.description =~ '(?i).*criteria.*') return distinct n limit 20;
我想对标签名称做同样的事情。我想获取包含某个字符串的所有唯一标签。比如:
Match (n)-[:IS_A]-() where (n:Course_*_001) return distinct n;
Cypher 能做到吗?还是 RestAPI?正则表达式?
我正在使用 Neo4j 2.0 版本。
【问题讨论】:
标签: regex wildcard cypher neo4j