lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <markharw...@yahoo.co.uk>
Subject Re: addIndexes getting slower and slower plus eating up Mem
Date Fri, 07 Jul 2006 10:23:12 GMT
The answer is because addIndexes() currently always does an optimize post-merge. If I recall
correctly optimize() will create a complete copy of the existing index during the optimize
process then delete the old one so this shouldn't be done too often.

Out of interest, why are you using a RAMDirectory here? An IndexWriter uses one internally
of size IndexWriter.setMaxBufferedDocs so you get the benefits of buffering automatically
when writing to a File-based directory.

Cheers
Mark



---------------------------------------------------------------------
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