lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: How to load only part of index files on hard drive to ram
Date Mon, 09 Jan 2012 10:31:02 GMT
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.


On Mon, Jan 9, 2012 at 4:56 AM, Cheng <> 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:
For additional commands, e-mail:

View raw message