You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2014/03/14 17:04:42 UTC

[jira] [Created] (LUCENE-5526) Forced merges

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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org