lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <>
Subject Re: Example settings for TieredMergePolicy : Lucene 4.0
Date Fri, 01 Feb 2013 23:29:19 GMT

On Fri, Feb 1, 2013 at 6:51 PM, saisantoshi <> wrote:
> Prior to 4.0, there was an optimize() in the IndexWriter which was merging
> the index files. Is there any settings that can be done on the
> TieredMergePolicy so that I want to limit the number of files produced
> during the indexing.

Segments can be merged by running IndexWriter.forceMerge(1). You can
read more about this command and why it is not recommended to use it
anymore at


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

View raw message