Re: Leftover write.lock file

2016-05-22 Thread Jianbao (Jim) Tao
Never mind, folks. Just found an answer: http://www.gossamer-threads.com/lists/lucene/java-user/110708 On Sun, May 22, 2016 at 10:20 AM, Jianbao (Jim) Tao wrote: > Hi, > > I am new to lucene. I was following the example, IndexFiles, from the > lucene demo package. However, one thing I find surpr

Leftover write.lock file

2016-05-22 Thread Jianbao (Jim) Tao
Hi, I am new to lucene. I was following the example, IndexFiles, from the lucene demo package. However, one thing I find surpring is that the write.lock file is left over, even when the IndexWriter#close() method is called. Below are details. Environment: OS X Yosemite java version "1.8.0_72" Jav

Re: Cache Lucene based index.

2016-05-22 Thread Erick Erickson
I've really got to echo Michael's comment. This really feels like an XY problem, you're asking how to do X because you think it'll solve Y without really explaining what Y is. If this is some kind of _temporary_ index where you want to index a few docs and, for some reason do _not_ want the data t

Re: Cache Lucene based index.

2016-05-22 Thread Ahmet Arslan
Hi Singhal, May be MemoryIndex or RAMDirectory? Ahmet On Saturday, May 21, 2016 1:42 PM, Prateek Singhal wrote: You can consider that I want to store the lucene index in some sort of temporary memory or a HashMap so that I do not need to index the documents every time as it is a costly opera