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

need to ensure that sims that use collection-level stats (e.g. sumTotalTermFreq) handle non-existent field

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: flexscoring branch
    • Fix Version/s: flexscoring branch
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Because of things like queryNorm, unfortunately similarities have to handle the case where they are asked to computeStats() for a term, where the field does not exist at all.
      (Note they will never have to actually score anything, but unless we break how queryNorm works for TFIDF, we have to deal with this case).

      I noticed this while doing some benchmarking, so i created a test to test some cases like this across all the sims.

        Attachments

        1. LUCENE-3401.patch
          12 kB
          Robert Muir
        2. LUCENE-3401.patch
          11 kB
          Robert Muir

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: