Re: [Neo4j] Lucene index: Too many open files

2011-03-31 Thread Mattias Persson
There are two things here: The error you're getting is because you probably forget to close some IndexHits somewhere, IndexHits that you haven't iterated all the way through... could you check your code for such mistakes? The other one that doCommit always seems to be invoked I just tried and

Re: [Neo4j] Lucene index: Too many open files

2011-03-31 Thread Michael Hunger
Is there a good way of ensuring the IndexHits, close? Especially if I give out the IndexHits (perhaps in an IteratorWrapper) to client code? Thanks Michael Am 31.03.2011 um 09:29 schrieb Mattias Persson: There are two things here: The error you're getting is because you probably forget to

Re: [Neo4j] Lucene index: Too many open files

2011-03-31 Thread Rick Bullotta
Thanks for the info re: calling close on the indexhits object. We will wrap that logic in a try/finally wherever we use index queries. - Reply message - From: Mattias Persson matt...@neotechnology.com Date: Thu, Mar 31, 2011 3:29 am Subject: [Neo4j] Lucene index: Too many open files

Re: [Neo4j] Lucene index: Too many open files

2011-03-31 Thread Alfredas Chmieliauskas
I get that too, but sometimes. I got the feeling that it relates to the number of @Transactional annotations that get nested. I might be completely wrong. But I got rid of it by revising my annotations. Alfredas On Wed, Mar 30, 2011 at 11:40 PM, rick.bullo...@burningskysoftware.com

Re: [Neo4j] Neo4J Spatial - issue with bounding box indices in OSM Layer.

2011-03-31 Thread Craig Taverner
Hi Robert, I took a look at this and the issue is that you are using the OSMGeometryEncoder to decode the RTree nodes. And the GeometryEncoder is designed to be specific to your data model, while the RTree internal data is hard-coded into the RTree design. So there is no guarantee that any

[Neo4j] undirected graph

2011-03-31 Thread 见光分解
how to create an undirected graph.please tell me the API. every time i create a graph,it is a directed graph,such as A---B;but not B---A thx~~ -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/undirected-graph-tp2758690p2758690.html Sent from the Neo4J User List

Re: [Neo4j] undirected graph

2011-03-31 Thread Rick Bullotta
In Neo, all relationships can be traversed in either direction. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Sent: Thursday, March 31, 2011 9:53 AM To: user@lists.neo4j.org Subject: [Neo4j] undirected graph how to create

Re: [Neo4j] undirected graph

2011-03-31 Thread Peter Neubauer
Hi there, you always create directed edges. However, if you don't want to take directions into account, just ignore the directions in your traversals using for ( Path position : Traversal.description() .depthFirst() .relationships( LIKES, Direction.BOTH ) .prune(

Re: [Neo4j] undirected graph

2011-03-31 Thread 见光分解
you mean that there are no differences between undirected graph and directed graph in neo4j? -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/undirected-graph-tp2758690p2758790.html Sent from the Neo4J User List mailing list archive at Nabble.com.

Re: [Neo4j] cycle detection

2011-03-31 Thread Peter Neubauer
Jacopo, do you have the source for this available somewhere? It's hard to judge anything from the class files ... Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

Re: [Neo4j] undirected graph

2011-03-31 Thread Peter Neubauer
Exactly. Just treat a directed graph undirected by ignoring the direction of relationships. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer

Re: [Neo4j] Query paths of certain lengths...

2011-03-31 Thread Tobias Ivarsson
Hi Jeff, What you are describing is a Friends-of-a-friend (foaf) traversal, which are the friends of my friends, who are not my direct friends. The best way to perform such a traversal is by using the traversal API: n.traverse( Order.BREADTH_FIRST, // because we want to exclude the direct

Re: [Neo4j] Lucene index: Too many open files

2011-03-31 Thread Axel Morgner
On 31.03.2011 09:29, Mattias Persson wrote: There are two things here: The error you're getting is because you probably forget to close some IndexHits somewhere, IndexHits that you haven't iterated all the way through... could you check your code for such mistakes? Hmm ... I checked the code.

[Neo4j] Connection Pool in Neo4j

2011-03-31 Thread sulabh choudhury
Hi, I have just started using Neo4j. I was wondering if Connection Pooling has been implemented in Neo4j ? I could not find any helper classes or any sort of documentation on it. ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] Connection Pool in Neo4j

2011-03-31 Thread Rick Bullotta
No need for connection pooling, since there is a single instance of the database connection that can be shared across threads. - Reply message - From: sulabh choudhury sula...@gmail.com Date: Thu, Mar 31, 2011 8:35 pm Subject: [Neo4j] Connection Pool in Neo4j To: user@lists.neo4j.org

[Neo4j] Help for neo4j

2011-03-31 Thread dong dong
Hello,I'm a newbie for Neo4j. Recently I visited wiki, got a lot of useful information, but there are some questions blocking me. 1. In neo4j's api,every method is thread-safe. I want to ask if every request for read or write to neo4j be queued,one by one processing. 2. config HA cluster by