Deepa, You probably want to ask on [EMAIL PROTECTED] list. Lucene reads in the whole .tii index file (see the Lucene for explanations of various Lucene index files). It doesn't read in *all* the index files, as those could be quite big. You *can* read in your index in a RAMDirectory via FSDirectory, though, and it sounds like that is what you are after.
Otis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ - Tag - Search - Share ----- Original Message ---- From: Deepa Paranjpe <[EMAIL PROTECTED]> To: general@lucene.apache.org Sent: Wednesday, February 14, 2007 2:32:53 PM Subject: Lucene indexes in memory Hi all, I want to understand how lucene searches its index -- does it load the whole index into memory at once? Is there any way to make sure that it does so. I want to optimize maximally on the search time required by lucene on over ~7M short documents. The queries that I deal are 6 to 7 tokens on an average. Your help on this will be appreciated. -Deepa