Michael,

Can you please give me the full syntax of creating index from attribute? I 
couldn't find exact syntax. The syntax for already labelled nodes is 
available. Nodes in my db are unlabelled as of now and I am trying to 
create index from a common attribute to all nodes. My attribute name is 
'crime_type' and it can have some 'n' values such as 'assault','theft' etc.

On Friday, 3 October 2014 19:00:34 UTC+5:30, Mohana Krishna, IIT Bombay, 
India wrote:
>
> I have issued a following query as part of my application:
>
>
> MATCH 
>
> (k{type:"ASSAULT"})-[r1:CLOSE_TO]->( l {type:"BATTERY"}),
>
> (k{type:"ASSAULT"})-[r2:CLOSE_TO]->(m{type:"THEFT"}),
>
> (k{type:"ASSAULT"})-[r3:CLOSE_TO]->(n{type:"NARCOTICS"}),
>
> ( l {type:"BATTERY"})-[r4:CLOSE_TO]->(m{type:"THEFT"}),
>
> ( l {type:"BATTERY"})-[r5:CLOSE_TO]->(n{type:"NARCOTICS"}),
>
> (m{type:"THEFT"})-[r6:CLOSE_TO]->(n{type:"NARCOTICS"}) 
>
> return count(distinct(k)) as k_count,  count(distinct(l)) as l_count,   
> count(distinct(m)) as m_count ,   count(distinct(n)) as n_count;
>
>
> The query is running indefinitely without giving results. I have 
> cross-checked but could not find any error. Am I missing something? Is 
> there a limit on maximum number of matches that can be done??
>
>  Please help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to