Adrien Grand created LUCENE-5526: ------------------------------------ Summary: 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.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org