You could certainly run some warm up queries, but you can't tell lucene which bits of an index to load into RAM.
There are a couple of classes in the org.apache.lucene.index contrib section that can split indexes but I doubt they are relevant here. Why the obsession with RAMDirectory? In my experience it's best to leave memory management to lucene and the OS. -- Ian. On Mon, Jan 9, 2012 at 4:56 AM, Cheng <zhoucheng2...@gmail.com> wrote: > Hi, I have a folder containing a few industry categories. I would like to > load only some of the categories into RAMDirectory. Can I use some queries > to segment the indices and load the matched portion into RAM? > > Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org