[ https://issues.apache.org/jira/browse/LUCENE-5526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand closed LUCENE-5526. -------------------------------- Resolution: Not a Problem Agreed, I guess this is not needed anymore since the merge policy can be changed on a live index. > Forced merges > ------------- > > Key: LUCENE-5526 > URL: https://issues.apache.org/jira/browse/LUCENE-5526 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Adrien Grand > Priority: Minor > > {{IndexWriter.forceMerge}} allows to force merges if the number of segments > is higher than a configured limit. I would like to have the ability to also > force a merge if there is a single segment in the directory. This is possible > today by closing the IndexWriter, reopening with a custom merge policy such > as {{UpgradeIndexMergePolicy}}, running a {{forceMerge}} and finally > reopening again with the original merge policy but this is a bit impractical > and if possible I would like to be able to do it without reopening the writer > twice. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org