Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: core/query/scoring
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      the maximum within-document TF is a very useful scoring value,
      we should expose it so that people can use it in scoring

      consider the following sim:

      @Override
      public float idf(int docFreq, int numDocs) {
        return 1.0F; /* not used */
      }
      
      @Override
      public float computeNorm(String field, FieldInvertState state) {
        return state.getBoost() / (float) Math.sqrt(state.getMaxTF());
      }
      

      which is surprisingly effective, but more interesting for practical reasons.

        Activity

        Hide
        Michael McCandless added a comment -

        +1

        Show
        Michael McCandless added a comment - +1
        Hide
        Robert Muir added a comment -

        Committed revision 1058939, 1058944 (3x)

        Show
        Robert Muir added a comment - Committed revision 1058939, 1058944 (3x)
        Hide
        Grant Ingersoll added a comment -

        Bulk close for 3.1

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1

          People

          • Assignee:
            Robert Muir
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development