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

Expose more stats on IndexReader

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3, 6.0
    • core/index
    • None
    • New, Patch Available

    Description

      IndexReader exposes stats like totalTermFreq(term) and docFreq(term). I'd like to add more stats from Terms, e.g. getDocCount/getSumDocFreq/getSumTotalTermFreq(field) for convenience. The implementation is very easy to do on CompositeReader, so I'll add these impls to BaseCompositeReader. I'll attach a patch shortly.

      Attachments

        1. LUCENE-4859.patch
          10 kB
          Shai Erera
        2. LUCENE-4859.patch
          11 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: