lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armbrust, Daniel C." <Armbrust.Dan...@mayo.edu>
Subject RE: Lucene Benchmarks and Information
Date Fri, 20 Dec 2002 19:17:29 GMT
Question about the behavior of 
FileWriter.addIndexes()

What I observed (and I know I should just go look at the source but) was that if I used this
method to add several indexes into a new blank index, optimize was not called when it was
done.  If I added several indexes into an existing index, then when it finished merging them,
it called optimize.

Is this what occurs?

Assuming yes, then the best performance would be to make indexes in a ram directory, write
them to a blank index on disk, and then when your all done, merge all of the disk directories
in one swoop to avoid optimizing multiple times?  I'll have to give it a try.  

Thanks for the tip.

Dan



-----Original Message-----
From: Scott Ganyo [mailto:scott.ganyo@etapestry.com] 
Sent: Friday, December 20, 2002 12:58 PM
To: Lucene Users List
Subject: Re: Lucene Benchmarks and Information


FYI: The best thing I've found for both increasing speed and reducing 
file handles is to use an IndexWriter on a RamDirectory for indexing and 
then use FileWriter.addIndexes() to write the result to disk.  This is 
subject to the amount of memory you have available, of course...

Scott



--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message