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

Detach IndexWriter from MergePolicy

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4, 8.0
    • Fix Version/s: 7.4, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      This change introduces a new MergePolicy.MergeContext interface
      that is easy to mock and cuts over all instances of IW to MergeContext.
      Since IW now implements MergeContext the cut over is straight forward.
      This reduces the exposed API available in MP dramatically and allows
      efficient testing without relying on IW to improve the coverage and
      testability of our MP implementations.

        Attachments

        1. LUCENE-8330.patch
          71 kB
          Simon Willnauer
        2. LUCENE-8330.patch
          70 kB
          Simon Willnauer
        3. LUCENE-8330.patch
          69 kB
          Simon Willnauer
        4. LUCENE-8330.patch
          68 kB
          Simon Willnauer

          Activity

            People

            • Assignee:
              simonw Simon Willnauer
              Reporter:
              simonw Simon Willnauer
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: