Re: windows locking file problem

2009-06-22 Thread Malo Pichot
Hello, Thank you for help, Micheal. It works fine now. Next time I will trust Lucene a little bit more ;-) Malo Michael McCandless a écrit : > It's best to let IndexWriter manage the deletion of files (for exactly > this reason). > > It turns out, it's perfectly fine to open an IndexWriter wi

Re: windows locking file problem

2009-06-19 Thread Michael McCandless
It's best to let IndexWriter manage the deletion of files (for exactly this reason). It turns out, it's perfectly fine to open an IndexWriter with "create=true" even when IndexReaders are reading that same index. Those open IndexReaders continue to search their point-in-time snapshot, and then whe