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

Add numDeletedDocs to IndexReader

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Add numDeletedDocs to IndexReader. Basically, the implementation is as simple as doing:
      public int numDeletedDocs() {
      return deletedDocs == null ? 0 : deletedDocs.count();
      }
      in SegmentReader.
      Patch to follow to include in all IndexReader extensions.

        Attachments

        1. LUCENE-1131.patch
          6 kB
          Shai Erera

          Activity

            People

            • Assignee:
              otis Otis Gospodnetic
              Reporter:
              shaie Shai Erera
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: