Usually only the type that you indexed is returned Alternatetivy you can check
Where type(r) = "INFECTED" Sent from mobile device Am 08.01.2014 um 19:42 schrieb mina sh <[email protected]>: > thank you, i had 2 types of relationship, and one of them have index in their > property. > reltionship type is infected and property in whom. in this case how can i > write query? > start r=relationship:<indexname>(whom="10") > but where i should define the type of relationship? > > thanks for your attention :) > > On Wednesday, January 8, 2014 9:58:17 PM UTC+3:30, Michael Hunger wrote: >> >> What is your use-case for that? >> >> Relationship-indexes are supported in the legacy-indexes and can be used >> with cypher like this >> >> start r=relationship:<indexname>(key="value") >> match (n)-[r]->(m) >> return n,m >> >> Legacy relationship-indexes are also available in the Java- and REST-API. >> >> Michael >> >> Am 08.01.2014 um 19:23 schrieb mina sh <[email protected]>: >> >>> Hi, >>> I have a dataset that the relationship has property. if I index those >>> property, Can I start a query with them? i mean strat a query from >>> relationship instead of nodes >>> >>> >>> -- >>> 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 [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
