Re: [Neo4j] check for existing relationship between two nodes

2010-08-18 Thread Mattias Persson
IndexProvider provider = new LuceneIndexProvider( graphDb ); RelationshipIndex index = provider.relationshipIndex( myIndex, LuceneIndexProvider.EXACT_CONFIG ); 2010/8/16 Jeff Klann jkl...@iupui.edu Hey I thought I'd try this out. Got the new kernel and downloaded the new index component

Re: [Neo4j] check for existing relationship between two nodes

2010-08-16 Thread Jeff Klann
Hey I thought I'd try this out. Got the new kernel and downloaded the new index component snapshot but can't figure out how to use it. Perhaps I'm just dense. Looks like the only class in the Javadoc is an abstract class so I don't know how to instantiate a new relationship index. Have an example?

[Neo4j] check for existing relationship between two nodes

2010-07-30 Thread Arijit Mukherjee
Hi All I have a requirement where I must check if there is an already existing relationship between two nodes (say N1 and N2). Right now, I'm doing it as follows: boolean found = false; final IterableRelationship currentRels = N1.getRelationships(RelTypes.KNOWS, Direction.OUTGOING); for

Re: [Neo4j] check for existing relationship between two nodes

2010-07-30 Thread Mattias Persson
Looping through relatiomships manually is the way to go. However there's a new component in https://svn.neo4j.org/laboratory/components/lucene-index/ which can index relationships and do fast lookups on whether or not a relationship (with a certain attribute even) exists between two nodes. You'll

Re: [Neo4j] check for existing relationship between two nodes

2010-07-30 Thread Arijit Mukherjee
Thanx Mattias. Can I download a tar.gz or zip file from somewhere? I'm not using Maven in my projects yet...I mean I'm not very comfortable with it. Arijit On 30 July 2010 17:33, Mattias Persson matt...@neotechnology.com wrote: Looping through relatiomships manually is the way to go. However

Re: [Neo4j] check for existing relationship between two nodes

2010-07-30 Thread Mattias Persson
The latest snapshots of things can be found at http://m2.neo4j.org/ and this component (jar-file) can be found in http://m2.neo4j.org/org/neo4j/neo4j-lucene-index/0.1-SNAPSHOT/ 2010/7/30, Arijit Mukherjee ariji...@gmail.com: Thanx Mattias. Can I download a tar.gz or zip file from somewhere? I'm