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

add numDocs() and maxDoc() methods to IndexWriter; deprecate docCount()

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9, 2.0.0, 2.1, 2.2, 2.3, 2.3.1
    • Fix Version/s: 2.4
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Spinoff from here:

      http://mail-archives.apache.org/mod_mbox/lucene-java-user/200804.mbox/%3c405706.11550.qm@web65411.mail.ac4.yahoo.com%3e

      I think we should add maxDoc() and numDocs() methods to IndexWriter,
      and deprecate docCount() in favor of maxDoc(). To do this I think we
      should cache the deletion count of each segment in the segments file.

        Attachments

        1. LUCENE-1267.patch
          17 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: