Thanks for your reply On Saturday, August 16, 2014 4:13:18 PM UTC+2, Michael Hunger wrote: > > > > Sent from mobile device > > Am 15.08.2014 um 23:03 schrieb Alex winter <winter...@gmail.com > <javascript:>>: > > Hi all. > I created a graph: for example. there are many nodes with relationship > :were born in, and other relationships like: know, dead in,..... So I have > some questions related to relationship index. > 1. When I imported data, i didn't put the setting auto relationship index > to true. So now how I can update relationship index? I know that changing > the config file is not enough to trigger new index. What I need to do > besides changing the setting in config file to have relationship index? > > > You have to re-set the property values > Do I need to reset every property values? Or I only need to reset one property value and other will be re index?
> > 2. For auto relationship index, do I need to set property of relationship > to index? For example, in my case, my relationship "were born in" doesn't > have any property. so is it possible to have relationship index in my case? > > > Rel-index only help you when looking up relationships for nothing else > > I'm sorry but I didn't catch what you mean. > 3. Could you show the link or describe how about the relationship index? > Because I found that, the query is very slow in the case I want to find > every nodes have relationship "were born in". I tried this query and I > guess that neo4j need to scan every node and check the relationship is > "were born in" or not. So if I have relationship index , is it better? How > is the best way for the query like this? > > > Perhaps you should explain your model and your queries in detail? > For example, my model is have people, place node and some relationship as: [:was_born_in], [: knows],.... And For example I want to find every pair of node have relationship [:was_born_in] so my query is "Match p=(a)-[:was_born_in]->(b) return p;". Is relation index help me in this case? > > 4. What you mean when you put relationship index in legacy index? > > > The relationship index IS a legacy index > > will it be replaced by another index like label index for node? > > No > > > Thanks in advance. > > -- > 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+un...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > -- 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.