简体   繁体   中英

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?

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.

Many Thanks.

I just asked a very similar question:

querying with an "IN" clause using the index in neo4j with Cypher

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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