lucene-java-user mailing list archives

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

On Fri, Feb 1, 2013 at 6:51 PM, saisantoshi <saisantoshi76@gmail.com> 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 http://www.searchworkings.org/blog/-/blogs/simon-says%3A-optimize-is-bad-for-you.

-- 
Adrien

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