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

sumOfSquared weights should be calculated as part of queryNorm

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/query/scoring
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      see the related issue for comments.

      its a bummer - doesn't look like we have time to address this, but its the best release for it - back compat requires the reflection stuff that Similarity already has (and we hope to remove next release). It would suck to have to hold onto it - so it seems unlikely we will do this at a later time.

      The idea is that the sumOfSquaredWeights computation should be specific to the queryNorm impl - so the queryNorm should accept the Weight instead, and if its using the euclidean distance formula, it can do the sumOfSquared calculations - but if its doing another normalization, these can be skipped (in each termweight, booleanweight, etc). Right now you pay for sumOfSquared no matter what, and the logic separation is a little off.

        Attachments

        1. LUCENE-1907.patch
          7 kB
          Mark Miller
        2. LUCENE-1907.patch
          7 kB
          Mark Miller
        3. LUCENE-1907.patch
          7 kB
          Mark Miller

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                markrmiller@gmail.com Mark Miller
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: