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

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

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9, 2.0.0, 2.1, 2.2, 2.3, 2.3.1
    • 2.4
    • core/index
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: