I use Neo4J to represent texts; in the simplest case, the text is a sequence of words connected by the relation LEMMA_TEXT.
I am trying to find the Nth word after a known query word that looks something like this.
MATCH (anchor)-[:LEMMA_TEXT*32]->(word) WHERE id(anchor) = 3275 RETURN word
In one specific case, if I increase the path length to 33, I get this error:
Neo.DatabaseError.Statement.ExecutionFailure: There is no spoon.
And yet the following query returns the correct result.
MATCH (anchor)-[:LEMMA_TEXT*32]->(word)-[:LEMMA_TEXT]->(next) WHERE id(anchor) = 3275 RETURN next
which shows that node I want to exist and is accessible.
Where is the section of the manual that tells me how to bend a spoon with my mind? More importantly, what does that mean ?!
neo4j cypher
tla May 27 '15 at 20:12 2015-05-27 20:12
source share