lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: preloading / "warming up" the index
Date Thu, 01 Jun 2006 04:53:36 GMT

: entry for "apple" ?   Basically I'd like to make sure that the entire
: inverted index (or as much as possible) is preloaded into memory, so if I

if you've got enough ram, and you really want everything loaded into
memory, you can allways use a RAMDirectory.

even if you want your index stored on disk for persistence, you can open a
RAMDirectory that mirrors an FSDirectory and use the RAMDirectory for

...but i have no idea wether this is acctually faster then just trusting
your OS's filesystem cache.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message