lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: mergeFactor and maxMergeDocs
Date Tue, 20 Jan 2004 17:17:53 GMT
Chong, Herb wrote:
> what effect and what recommendations are valid for Lucene 1.3?

Same as always: use the defaults and call optimize() only when you know 
you won't be changing the index for a while.

If you have lots of RAM, increasing minMergeDocs may increase indexing 
speed, but raising it too high may cause out of memory problems.

You may also see some indexing speedup by increasing the mergeFactor, 
but raising it too high will cause file handle problems.  Calling 
setUseCompoundFile() will enable higher mergeFactor settings before 
encountering file handle problems.

Obsession with indexing performance is not healthy.  Before changing any 
settings convince yourself that indexing performance is a real problem 
for your application.  How often do you re-index from scratch?  Are you 
really having any difficulty keeping up with the rate of change of your 
collection?  Perhaps your development time would be better spent 
focussing on other parts of your application.


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

View raw message