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

Expose hard live docs on SegmentReader level

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.5, 8.0
    • 7.5, 8.0
    • None
    • None
    • New, Patch Available

    Description

      Today if soft deletes are used we expose a union of hard and soft deletes
      via LeafReader#getLiveDocs. Yet, if a users wants to take advantage of
      searching also soft-deleted documents the only option today is to search
      all documents even though some of them are hard deleted. The recommendation
      is to not mix those but in exceptional cases ie. when a document hits a
      non-aborting exception during indexing the document is marked as hard
      deleted which is the correct action. In order to filter those out having
      access to the hard live docs on the segment reader level allows to filter out
      these documents.

      Attachments

        1. LUCENE-8425.patch
          15 kB
          Simon Willnauer
        2. LUCENE-8425.patch
          12 kB
          Simon Willnauer

        Activity

          People

            Unassigned Unassigned
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: