lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Example settings for TieredMergePolicy : Lucene 4.0
Date Fri, 01 Feb 2013 23:43:59 GMT
You shouldn't need to call forceMerge: Lucene will periodically do
"natural" merges, which will keep the file count down.

Try indexing millions of documents and watch how the files change....

Or, turn on IndexWriter's infoStream to see when merges are done.

Mike McCandless

On Fri, Feb 1, 2013 at 6:39 PM, saisantoshi <> wrote:
> Thanks. I read this ( and also tried it out in my code) and understand that
> forceMerge(1) is not advisable for performance reasons. My question here is
> if we don't have a way to compress these files, it will produce enormous
> amount of files which will lead to some file system issues ( such as
> exceeding the file descriptor issues). Not sure if there is any way to avoid
> that kind of problem? How do we handle that situation with Lucene?
> Thanks,
> Sai
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message