lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2936) score and explain don't match
Date Thu, 24 Feb 2011 01:09:39 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hoss Man updated LUCENE-2936:
-----------------------------

    Attachment: LUCENE-2936.patch

This superceeds my "test" patch by actually including the fix as well.

while investigating this, i also discovered some heinous bugs in CheckHits where match and
non match were naively been asserted using the explanation value instead of actaully checking
"isMatch" (which explained why some of my earlier attempts at testing for this bug in PhraseQUery
explain didn't surface the problem)

There may still be other situations where a 0 fieldNorm screws up a score explanation, but
this should fix the ones we know about.

would appreciate a review so we can get this into 3.1

> score and explain don't match
> -----------------------------
>
>                 Key: LUCENE-2936
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2936
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.9.4, 3.0.3, 3.1, 4.0
>            Reporter: Koji Sekiguchi
>            Assignee: Robert Muir
>            Priority: Minor
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2936.patch, LUCENE-2936.patch, LUCENE-2936.patch, LUCENE-2936.test.patch,
TestScore.java
>
>
> I've faced this problem recently. I'll attach a program to reproduce the problem soon.
The program outputs the following:
> {noformat}
> ** score = 0.10003257
> ** explain
> 0.050016284 = (MATCH) product of:
>   0.15004885 = (MATCH) sum of:
>     0.15004885 = weight(f1:"note book" in 0), product of:
>       0.3911943 = queryWeight(f1:"note book"), product of:
>         0.61370564 = idf(f1: note=1 book=1)
>         0.6374299 = queryNorm
>       0.38356602 = fieldWeight(f1:"note book" in 0), product of:
>         1.0 = tf(phraseFreq=1.0)
>         0.61370564 = idf(f1: note=1 book=1)
>         0.625 = fieldNorm(field=f1, doc=0)
>   0.33333334 = coord(1/3)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message