Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.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 - Fatal编程技术网

Neo4j:仅查找一个标记的关系

Neo4j:仅查找一个标记的关系,neo4j,cypher,Neo4j,Cypher,我正在尝试查找特定节点的所有子节点 match(t:TAG)<-[children:CHILD_OF]-(subtag:TAG) where t.name="brand" return t.name, subtag.name 匹配(t:TAG)试试这个 match(t:TAG) where t.name="brand" with t Match (t)<-[children:CHILD_OF]-(subtag:TAG) return t.name, subtag.name 匹

我正在尝试查找特定节点的所有子节点

match(t:TAG)<-[children:CHILD_OF]-(subtag:TAG) where t.name="brand" return t.name, subtag.name
匹配(t:TAG)试试这个

match(t:TAG) where t.name="brand" with t 
Match (t)<-[children:CHILD_OF]-(subtag:TAG)  return t.name, subtag.name
匹配(t:TAG),其中t.name=“brand”与t

Match(t)令人惊讶的是,我的查询是fasterIt,这可能是因为您的数据集(您有少量的标记,neo4j优化了查询)、缓存。如果不是,我觉得很奇怪,请确保您在名称上有索引。可能就是这样。如何检查我是否有索引?请在此处查找索引信息