我用一个节点填充了一个空的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
发布于 2018-07-25 20:53:51
正则表达式运算符不是=- (等于减号),而是=~ (等于tild)。
所以您的查询是:match (n : Per) where n.Name =~ ".*lom" return n
https://stackoverflow.com/questions/51514128
复制相似问题