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

Add doBeforeFlush to IndexWriter

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.9.3, 3.0.2, 4.0-ALPHA
    • core/index
    • None
    • New, Patch Available

    Description

      IndexWriter has doAfterFlush which can be overridden by extensions in order to perform operations after flush has been called. Since flush is final, one can only override doAfterFlush. This issue will handle two things:

      1. Make doAfterFlush protected, instead of package-private, to allow for easier extendability of IW.
      2. Add doBeforeFlush which will be called by flush before it starts, to allow extensions to perform any operations before flush begings.

      Will post a patch shortly.

      BTW, any chance to get it out in 3.0.1?

      Attachments

        1. LUCENE-2281.patch
          3 kB
          Shai Erera

        Activity

          People

            mikemccand Michael McCandless
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: