Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: