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
Graph NEO4J Cypher查询使用多个节点启动索引查询_Graph_Neo4j_Cypher - Fatal编程技术网

Graph NEO4J Cypher查询使用多个节点启动索引查询

Graph NEO4J Cypher查询使用多个节点启动索引查询,graph,neo4j,cypher,Graph,Neo4j,Cypher,是否可以编写一个可以从多个节点的精确索引查询开始的密码查询 例如: START n=node:indexName (key="value1", key="value2" ...) 我无法实现上述功能,我将探索是否可以通过lucene查询实现这一功能 非常感谢。我刚才问了一个非常类似的问题: 彼得回答说 start n = node:indexName('key:123 OR key:456') 你可以: START thing1 = node:topic('name:(keyword1)'

是否可以编写一个可以从多个节点的精确索引查询开始的密码查询

例如:

START n=node:indexName (key="value1", key="value2" ...)
我无法实现上述功能,我将探索是否可以通过lucene查询实现这一功能


非常感谢。

我刚才问了一个非常类似的问题:

彼得回答说

start n = node:indexName('key:123 OR key:456')
你可以:

START thing1 = node:topic('name:(keyword1)'), thing2 = node:topic('name:(keyword2)')
它将寻找两个主题,每个主题包含不同的值

start n=node:topic('name:(keyword1 AND keyword2)') return n

它将在同一个节点中查找多个关键字

重复:谢谢,lucene查询可以工作。尽管有其他一些可能,但如果索引的同一字段也是节点的属性,我想如果可以执行类似“WHERE node.property IN collection”的操作是的,您可以这样做,它将查看节点属性,而不是借助索引(尽管这可能会随着以后更好的索引和查询优化而改变:)