I have graph with different types of nodes and edges. I would like to get all paths between two nodes (index WORD) which are connected by edges (relation NEXT_WORD) with property edgeLevel=1. I don't want to get connections where "edgeLevel != 1". I wrote a query
MATCH p=(a:WORD{wholeWord:"are"})-[r:NEXT_WORD*1..3{edgeLevel:1}]->(b:WORD{wholeWord: "you"}) RETURN length(p);
but it is very heavy. I'm trying to figure out how to optimize this cypher query, but I have no idea. Is there any quicker and less heavy way to do this? This query returned 32 rows in 7931 ms.
