Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Right now we track docFreq for each term (how many docs have the
      term), but the totalTermFreq (total number of occurrences of this
      term, ie sum of freq() for each doc that has the term) is also a
      useful stat (for flex scoring, PulsingCodec, etc.).

      1. LUCENE-2862.patch
        55 kB
        Michael McCandless

        Activity

        Hide
        Michael McCandless added a comment -

        Patch, adds TermsEnum.totalTermFreq (returns -1 if codec doesn't impl it, or if omitTFAP is on) and Terms.getSumTotalTermFreq (= sum across all terms in this field).

        Show
        Michael McCandless added a comment - Patch, adds TermsEnum.totalTermFreq (returns -1 if codec doesn't impl it, or if omitTFAP is on) and Terms.getSumTotalTermFreq (= sum across all terms in this field).

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development