lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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
searching...

http://lucene.apache.org/java/docs/api/org/apache/lucene/store/RAMDirectory.html

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




-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message