neo4j中的密码正则表达式运算符给出了意想不到的行为

问题描述 投票:0回答:1

我用一个节点填充了一个空的NEO4J商店:

 create (P: Per {Name: "Shalom"});

质疑它

neo4j> match (n) return n;
| (:Per {Name: "Shalom"}) |

尝试正则表达式,得到了最奇怪的回应:

neo4j> match (n : Per) where n.Name =- ".*lom" return n;
Type mismatch: expected Float or Integer but was String (line 2, column 33 (offset: 33))
"match (n : Per) where n.Name =- ".*lom" return n;"

知道这里有什么问题吗?谢谢,

Shalom Elkin

regex neo4j cypher
1个回答
2
投票

正则表达式运算符不是qazxsw poi(等于减号),而是qazxsw poi(等于代字号)。

所以你的查询是:=-

© www.soinside.com 2019 - 2024. All rights reserved.