Re: [Neo4j] Need help in modification of the query

2014-03-05 Thread Sukaant Chaudhary
Thanks Michael -Sukaant Chaudhary [image: linkedinbutton] On Wed, Mar 5, 2014 at 4:31 PM, Michael Hunger < michael.hun...@neopersistence.com> wrote: > Yes, why not? I assume that is a 1:1 relationship. > > Whatever m,q,k mean? you shou

Re: [Neo4j] Need help in modification of the query

2014-03-05 Thread Michael Hunger
Yes, why not? I assume that is a 1:1 relationship. Whatever m,q,k mean? you should probably use more descriptive names for those :) Michael Am 05.03.2014 um 11:35 schrieb Sukaant Chaudhary : > Hi Michael, > I'll change the relation the way you suggested. > Here in this query, I want to add (q)-

Re: [Neo4j] Need help in modification of the query

2014-03-05 Thread Sukaant Chaudhary
Hi Michael, I'll change the relation the way you suggested. Here in this query, I want to add *(q)-[l:LOCATION]->(t) *the way I'm doing is right or not? Please suggest. START n=node(2) MATCH (n)-[:FOLLOWED_BY*..5]->(m) WITH DISTINCT m MATCH (m)-[:PUBLISHED_UNDER*..5]->(q)<-[:PUBLISHED_BY*..5]-(

Re: [Neo4j] Need help in modification of the query

2014-03-04 Thread Michael Hunger
And what doesn't work? It might make sense to create a LOCATION_PERMANENT rel-type instead. to speed things up. Michael Am 04.03.2014 um 13:33 schrieb Sukaant Chaudhary : > Hi, > In the following query I want to add the highlighted conditions with bold, > Please help me how to add: > > START

[Neo4j] Need help in modification of the query

2014-03-04 Thread Sukaant Chaudhary
Hi, In the following query I want to add the highlighted conditions with bold, Please help me how to add: START n=node(2) MATCH (n)-[:FOLLOWED_BY*..5]->(m) WITH DISTINCT m MATCH (m)-[:PUBLISHED_UNDER*..5]->(q)<-[:PUBLISHED_BY*..5]-(k)*, (q)-[l:LOCATION]->(t) //Add This* WHERE (q.eventSta