Re: Instantiating a RAMDirectory from a mutating directory

2009-03-09 Thread Michael McCandless
You're welcome, and let us know how it goes! Mike Kieran Topping wrote: Mike, many thanks for this most comprehensive reply. Actually, I believe that NOTE only applies to the two addIndexes methods that take Directory. So I think this approach will work fine in general. Have you hit any

Re: Instantiating a RAMDirectory from a mutating directory

2009-03-09 Thread Kieran Topping
Mike, many thanks for this most comprehensive reply. Actually, I believe that NOTE only applies to the two addIndexes methods that take Directory. So I think this approach will work fine in general. Have you hit any problems in testing it? I'll update the javadocs. I have not attempted this

Re: Instantiating a RAMDirectory from a mutating directory

2009-03-06 Thread Michael McCandless
This is an interesting challenge! Responses below... Kieran Topping wrote: Hello, I would like to be able to instantiate a RAMDirectory from a directory that an IndexWriter in another process might currently be modifying. Ideally, I would like to do this without any synchronizing or

Instantiating a RAMDirectory from a mutating directory

2009-03-05 Thread Kieran Topping
Hello, I would like to be able to instantiate a RAMDirectory from a directory that an IndexWriter in another process might currently be modifying. Ideally, I would like to do this without any synchronizing or locking. Kind-of like the way in which an IndexReader can open an index in a direct