Thanks for your answers. The correct quotation marks are working. Couldn't find this in the docs. Some other notes between the lines:
> > start c=(typeIndex,node_type,"C"), e=(typeIndex,node_type,"E") > > match(c)-->(e) where (c.node_name = "name") return c,e > > > > This only works if C and E have a direct relationship. I'm looking for > > all the E's that are somehow connected to C. Is this possible? Will it > > be possible in the near future? > > > > It is not possible now. It is however something that we want to have. We're > closing in on the next stable release, and variable length connections are not > going to make it into 1.4. It should be available soon after though, if nothing > shakes the plan as we now know it. This would be great. Will it also be possible to retrieve the path? Say all nodes between c and e? I'm asking because since I don't know how may relationships are between the nodes, it is not possible to give them identifiers. > > I know I can traverse the graph myself, but this would take too long. > > The above query takes some 10 seconds, which is also too long. > > > > 10 seconds? I'd love to know more about this. How many C nodes do you > have? > How many E nodes? Does it take ten seconds with cold or with warm caches? I have some 16000 nodes all together. Ca. 700 C nodes and 6000 E nodes. There are some 6000 D nodes which are between C and E. Every node has 5+ relationships to other nodes. I don't how warm the caches should be ;) The first run gives me 10sec, any next run 8sec. > > I also had trouble (SyntaxError) to use the alternative start query with > > index and query (4.1.4. Node by index query). Is this implemented yet? > > How can one use indices in WHERE and MATCH statements? > > There are reasons why we have chosen not to expose things like index > queries > in the MATCH and WHERE statement. What is it that you are trying to do? > Maybe I can help you figure out a better way of doing it? Basically I thought I could improve performance in the WHERE statement if I could use indices there. Something like in the START statement. One other thing. From what I understand, those queries should return the same result, but they don't: start c=(typeIndex,node_type,"C"), e=(typeIndex,node_type,"E") match(c)-->(e) where (c.node_name = "name") return c,e start c=(typeIndex,node_type,"C") match(c)-->(e) where (c.node_name = "name") and (e.node_type = "E") return c,e Regards, Adrian. _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

