[
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.test.patch
I don't understand 95% of what yonik & robert have been saying in this issue --
but fortunately i don't think that matters -- it sounds like they both agree
htat what they are talking about is unrelated to this bug.
having said that: once i looked at Koji's example program, i tried making a
simple one line change to TestExplanations to set a field boost of "0" on some
docs, expecting that to trigger failures in TestSimpleExplanations -- but it
did not (it did however trigger lots of failures in TestComplexExplanations.
So i expanded TestSimpleExplanations to include more cases where BooleanQueries
included clauses in multiple fields -- one of which had gotten an index time
field boost of zero for some documents, and i *still* couldn't make
TestSimpleExplanations fail.
So then i expanded the patch to also include BooleanQueries containing *phrase*
queries on multiple fields, and then i was finally able to make
TestSimpleExplanations in similar ways to what Koji is seeing.
patch with changes to tests to reproduce bug is attached
> 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
> Attachments: 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: [email protected]
For additional commands, e-mail: [email protected]