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

[PATCH] new method expungeDeleted() added to IndexWriter

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: core/index
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Bugzilla Id:
      32712

      Description

      We make use the docIDs in lucene. I need a way to compact the docIDs in segments
      to remove the "holes" created from doing deletes. The only way to do this is by
      calling IndexWriter.optimize(). This is a very heavy call, for the cases where
      the index is large but with very small number of deleted docs, calling optimize
      is not practical.

      I need a new method: expungeDeleted(), which finds all the segments that have
      delete documents and merge only those segments.

      I have implemented this method and have discussed with Otis about submitting a
      patch. I don't see where I can attached the patch. I will do according to the
      patch guidleine and email the lucene mailing list.

      Thanks

      -John

      I don't see a place where I can

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              john.wang@gmail.com John Wang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment