Ok, thanks for pointing that out, I was not aware that it was missing. Will add the implementation.
Michael Am 04.12.2011 um 16:57 schrieb Frank: > Peter: > > The function I'm calling isn't implemented. I found it in the source code: > > public class RestRelationshipIndex extends RestIndex<Relationship> > implements RelationshipIndex { > public RestRelationshipIndex( RestRequest restRequest, String > indexName, RestAPI restApi ) { > super( restRequest, indexName, restApi ); > } > > public Class<Relationship> getEntityType() { > return Relationship.class; > } > > public org.neo4j.graphdb.index.IndexHits<Relationship> get( String s, > Object o, Node node, Node node1 ) { > throw new UnsupportedOperationException(); > } > > public org.neo4j.graphdb.index.IndexHits<Relationship> query( String s, > Object o, Node node, Node node1 ) { > throw new UnsupportedOperationException(); > } > > public org.neo4j.graphdb.index.IndexHits<Relationship> query( Object o, > Node node, Node node1 ) { > throw new UnsupportedOperationException(); > } > > @Override > public boolean isWriteable() { > return true; > } > } > > On Sun, Dec 4, 2011 at 9:46 AM, Peter Neubauer [via Neo4j Community > Discussions] <ml-node+s438527n3559286...@n3.nabble.com> wrote: > >> Frank, >> Do you have a minimal test case reproducing this? >> >> /peter >> >> Sent from my phone, please excuse typos and autocorrection. >> On Dec 2, 2011 9:12 PM, "Frank" <[hidden >> email]<http://user/SendEmail.jtp?type=node&node=3559286&i=0>> >> wrote: >> >>> Thanks for the reply. >>> >>> I *think* that what I need is to do is this: >>> >>> Relationship relationship = relationshipIndex.get("signature", >> signature, >>> lastNode, null).getSingle(); >>> >>> If I understand the documentation correctly, this should return only the >>> relationships attached to the node "lastNode" that have the value I'm >>> asking for. >>> >>> Unfortunately, my attempt to use this function results in the following >>> exception: >>> >>> java.lang.UnsupportedOperationException >>> at >>> >> org.neo4j.rest.graphdb.index.RestRelationshipIndex.get(RestRelationshipIndex.java:42) >> >>> >>> I'm kind of stuck at this point. Any ideas? >>> >>> Frank >>> >>> On Dec 2, 2011, at 1:59 PM, Peter Neubauer [via Neo4j Community >>> Discussions] wrote: >>> >>>> Frank, >>>> Either you could put just some of the rels into the index, or maybe >> have >>> an >>>> additional property in the index for the direction? >>>> >>>> /peter >>>> >>>> Sent from my phone, please excuse typos and autocorrection. >>>> On Dec 2, 2011 8:28 PM, "Frank" <[hidden email]> wrote: >>>> >>>>> I'm having some trouble understanding relationship indexes. >>>>> >>>>> I plan to have nodes with many (hundreds, sometimes thousands) of >>>>> relationships to other nodes. >>>>> >>>>> Give node N, I want to be able to quickly locate one of those >>> relationships >>>>> given a key. I want to consider only the outgoing relationships of >> that >>>>> node, not all nodes. >>>>> >>>>> Can this be accomplished? The problem I'm seeing is that when I try >> to >>> look >>>>> up a relationship from a RelationshipIndex, I don't see how to limit >>> that >>>>> lookup to just the outgoing relationships of one node. >>>>> >>>>> -- >>>>> View this message in context: >>>>> >>> >> http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p3555465.html >>>>> Sent from the Neo4j Community Discussions mailing list archive at >>>>> Nabble.com. >>>>> _______________________________________________ >>>>> Neo4j mailing list >>>>> [hidden email] >>>>> https://lists.neo4j.org/mailman/listinfo/user >>>>> >>>> _______________________________________________ >>>> Neo4j mailing list >>>> [hidden email] >>>> https://lists.neo4j.org/mailman/listinfo/user >>>> >>>> >>>> If you reply to this email, your message will be added to the >> discussion >>> below: >>>> >>> >> http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p3555523.html >>>> To unsubscribe from Relationship indexes, click here. >>>> NAML >>> >>> >>> >>> -- >>> View this message in context: >>> >> http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p3555547.html >> >>> Sent from the Neo4j Community Discussions mailing list archive at >>> Nabble.com. >>> _______________________________________________ >>> Neo4j mailing list >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=3559286&i=1> >>> https://lists.neo4j.org/mailman/listinfo/user >>> >> _______________________________________________ >> Neo4j mailing list >> [hidden email] <http://user/SendEmail.jtp?type=node&node=3559286&i=2> >> https://lists.neo4j.org/mailman/listinfo/user >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p3559286.html >> To unsubscribe from Relationship indexes, click >> here<http://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3555465&code=ZnJhbmtAc3R1ZHlibHVlLmNvbXwzNTU1NDY1fDE1MDQ4NTI2NjA=> >> . >> NAML<http://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p3559307.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user