Hi guys, I have a few questions about getting started with neo4j.
We have a graph with 4 ppl owning 5 phone numbers (some own 1 some own 2 and others 3). 1. When trying to get a list: friends of friends (that are not my own friends), I write the following query, however my own friends still show up and some entries are duplicates. START id_my=(11) MATCH (id_my)-[:KNOWS]->(f)<-[:KNOWS]->(id_o)-[:KNOWS]->(fof) WHERE NOT(f.number=fof.number) RETURN f a. How do I remove my own friends from the returning subset? b. How do I remove the duplicates in the returning array? c. How do I make sure they are prioritized in the right order? (maybe connected to the b. question) 2. Are there any resources where I can read more about how to use indexes? I mean very practical examples of how they are set up and used. Thank you guys! Best Regards Nami Zarringhalam CEO E-mail: <mailto:[email protected]> [email protected] URL: <http://www.truecaller.com/> www.truecaller.com Phone: +46(0)73 - 669 39 89 Skype: nami.zarringhalam --------------------------------- TrueCaller, a global phonebook, in the palm of your hand! Download for free at truecaller.com from your cellphone today! --------------------------------- This email and any attachments are the property of True Software Scandinavia AB. It is intended only for the person or entity to which it is addressed and may contain information which is confidential, privileged or otherwise protected from disclosure. Distribution or copying of this email or the information contained herein by anyone other than the intended recipient is prohibited. If you have received this email in error, please immediately notify the sender by email at <mailto:[email protected]> [email protected] and please delete and destroy any copies of this email and its attachments, if any. _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

