简体   繁体   English

NEO4J Cypher查询多个节点的START索引查询

[英]NEO4J Cypher query START index query with multiple nodes

Is it possible to write an cypher query that can START with an exact index query for multiple nodes? 是否可以编写一个cypher查询,该查询可以通过针对多个节点的精确索引查询来启动?

For example: 例如:

START n=node:indexName (key="value1", key="value2" ...)

I was unable to achieve something like the above, I am about to explore whether this can be done with a lucene query. 我无法实现上述内容,我即将探索是否可以使用lucene查询完成此操作。

Many Thanks. 非常感谢。

I just asked a very similar question: 我刚问了一个非常相似的问题:

querying with an "IN" clause using the index in neo4j with Cypher 使用带有Cypher的neo4j中的索引查询“IN”子句

And Peter answered with the following 彼得回答了以下问题

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

You can: 您可以:

START thing1 = node:topic('name:(keyword1)'), thing2 = node:topic('name:(keyword2)')

it will look for two topics, containing each a different value; 它将寻找两个主题,每个主题包含不同的值;

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

it will look for multiple keywords in the same node 它将在同一节点中查找多个关键字

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM