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

Re: Cache Lucene based index.

2016-05-21 Thread Michael Wilkowski
I recommend reading http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html?m=1 Just use mmapdirectory and let operating system do the rest. MW Sent from Mi phone On 21 May 2016 12:42, "Prateek Singhal" wrote: > You can consider that I want to store the lucene index in some sor

Re: Cache Lucene based index.

2016-05-21 Thread Prateek Singhal
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 operation. I can directly return the lucene index from that HashMap and use it to answer my queries. Just want to know if I

RE: Cache Lucene based index.

2016-05-21 Thread Uwe Schindler
Hi, What do you mean with "cache"? Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Prateek Singhal [mailto:prateek.b...@gmail.com] > Sent: Saturday, May 21, 2016 11:27 AM > To: java-user@lucene.apach