2011/5/28 Chris Baranowski <[email protected]> > Nice, yeah that's what I was thinking too. So then did you bother with > subreferences for node types or just keep your approach consistent by > using indexes for nodes as well? > > Also, iterating over the values of an index is a little more cumbersome > than iterating over edges, namely because you have to call close() on > the IndexHits object. I'd like to not force the users of my neo4j > wrapper API to call close(), any advice? >
Then I think you'd have to gather the results up front, i.e. loop through the IndexHits instance (making it close itself) and return the entire result as a list. It may not be desirable to take that hit of looping through the result before even the first one can be returned though. > Thanks! > Chris > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [[email protected]] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

