Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j 如何在属性值的开头使用通配符?_Neo4j_Cypher_Wildcard - Fatal编程技术网

Neo4j 如何在属性值的开头使用通配符?

Neo4j 如何在属性值的开头使用通配符?,neo4j,cypher,wildcard,Neo4j,Cypher,Wildcard,我需要这样的东西 match (n)-[:RELATIONSHIP]-(NODE) where NODE.name=~ "*.(?i)something.*" Return n.name 最后的通配符起作用了。但另一个不会 谢谢。您已经非常接近了,只需在开头添加不区分大小写的标记,并使用*作为占位符。请尝试以下操作: match (n)-[:RELATIONSHIP]-(NODE) where NODE.name=~ "(?i).*something.*" Return n.name 这

我需要这样的东西

match (n)-[:RELATIONSHIP]-(NODE) where NODE.name=~ "*.(?i)something.*"  Return n.name
最后的通配符起作用了。但另一个不会


谢谢。

您已经非常接近了,只需在开头添加不区分大小写的标记,并使用
*
作为占位符。请尝试以下操作:

match (n)-[:RELATIONSHIP]-(NODE) where NODE.name=~ "(?i).*something.*"  Return n.name
这项工作: 匹配(n)-[:关系]-(NODE)其中NODE.name=~“(.i).something.”返回n.name