Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-879

Document number integrity merge policy

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • None
    • core/store
    • None
    • New, Patch Available

    Description

      This patch allows for document numbers stays the same even after merge of segments with deletions.

      Consumer needs to do this:
      indexWriter.setSkipMergingDeletedDocuments(false);

      The effect will be that deleted documents are replaced by a new Document() in the merged segment, but not marked as deleted. This should probably be some policy thingy that allows for different solutions such as keeping the old document, et c.

      Also see http://www.nabble.com/optimization-behaviour-tf3723327.html#a10418880

      Attachments

        1. LUNCENE-879.diff
          29 kB
          Karl Wettin
        2. LUNCENE-879.diff
          15 kB
          Karl Wettin

        Activity

          People

            Unassigned Unassigned
            karl.wettin Karl Wettin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: