neo4j中cypher语句多个模糊查询

总结一下经验:

neo4j中,cypher语句的模糊查询,好像是个正则表达式结构。

对于一个属性的多个模糊查询,可以使用如下写法:

比如,查询N类型中,属性attr包含‘a1’或者‘a2’的所有节点。

match (n:N)

where n.attr =~ '.*a1.*|.*a2.*'

return n

猜你喜欢

转载自www.cnblogs.com/bingwork/p/8945161.html