Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None
    • New

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: