Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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
        mikemccand 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
        mikemccand 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:
            mikemccand Michael McCandless
            Reporter:
            mikemccand Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development