Using the neo4j auto index in the Cypher WHERE filtering section

Are autoindexes for properties (node ​​or relations) used by the Cypher runtime when executing the WHERE clause for filtering? If not, is there a way to tell Cypher to use them? What about third party indices (e.g. Lucene)?

+5
source share
1 answer

This is something we have been thinking a lot about, but, alas, not yet.

The indexing part of Neo4j will soon begin overhaul, and when this happens, we will link Cypher closer to it to do other interesting things (for example, heuristic to choose the right index to use).

, . lt; - [: ACTS_IN], , , , :

START movie=node:movies("title:M*") 
MATCH movie<-[:ACTS_IN]-actor
WHERE actor.name = "Kevin Bacon"
RETURN movie.title

, :

START movie=node:movies("title:M*"),
      actor=node:actors(name="Kevin Bacon")
MATCH movie<-[:ACTS_IN]-actor
RETURN movie.title

, . .

+6

All Articles