Lucene - Core
  1. Lucene - Core
  2. LUCENE-1076

Allow MergePolicy to select non-contiguous merges

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 3.2, 4.0-ALPHA
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I started work on this but with LUCENE-1044 I won't make much progress
      on it for a while, so I want to checkpoint my current state/patch.

      For backwards compatibility we must leave the default MergePolicy as
      selecting contiguous merges. This is necessary because some
      applications rely on "temporal monotonicity" of doc IDs, which means
      even though merges can re-number documents, the renumbering will
      always reflect the order in which the documents were added to the
      index.

      Still, for those apps that do not rely on this, we should offer a
      MergePolicy that is free to select the best merges regardless of
      whether they are continuguous. This requires fixing IndexWriter to
      accept such a merge, and, fixing LogMergePolicy to optionally allow
      it the freedom to do so.

      1. LUCENE-1076.patch
        10 kB
        Michael McCandless
      2. LUCENE-1076.patch
        112 kB
        Michael McCandless
      3. LUCENE-1076.patch
        132 kB
        Michael McCandless
      4. LUCENE-1076.patch
        8 kB
        Michael McCandless
      5. LUCENE-1076-3x.patch
        53 kB
        Shai Erera

        Activity

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development