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

Add doBeforeFlush to IndexWriter

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.3, 3.0.2, 4.0-ALPHA
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              shaie Shai Erera

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment