You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (Created) (JIRA)" <ji...@apache.org> on 2011/09/30 18:44:45 UTC
[jira] [Created] (LUCENE-3478) TestSimpleExplanations failure
TestSimpleExplanations failure
------------------------------
Key: LUCENE-3478
URL: https://issues.apache.org/jira/browse/LUCENE-3478
Project: Lucene - Java
Issue Type: Bug
Components: core/search
Reporter: Michael McCandless
Fix For: 4.0
{noformat}
ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
{noformat}
fails w/ this on current trunk... looks like silly floating point precision issue:
{noformat}
[junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>)
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
[junit]
[junit] ------------- Standard Error -----------------
[junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
[junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
[junit] NOTE: all tests run in this JVM:
[junit] [TestSimpleExplanations]
[junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
[junit] ------------- ---------------- ---------------
[junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
[junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>
[junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>
[junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
[junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
[junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
[junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
[junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
[junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
[junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
[junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
[junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
[junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
[junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
[junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
[junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
[junit]
[junit]
[junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (LUCENE-3478) TestSimpleExplanations failure
Posted by "selckin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119283#comment-13119283 ]
selckin commented on LUCENE-3478:
---------------------------------
probably no help but here's another seed that fails with current trunk:
ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=fbca02f55c014c4:-30d3a78946a8c6e4:7b00fc6c23b3e9f
> TestSimpleExplanations failure
> ------------------------------
>
> Key: LUCENE-3478
> URL: https://issues.apache.org/jira/browse/LUCENE-3478
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/search
> Reporter: Michael McCandless
> Fix For: 4.0
>
> Attachments: LUCENE-3478.patch, LUCENE-3478.patch
>
>
> {noformat}
> ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=-7e984babece66153:3e3298ae627b33a9:3093059db62bcc71
> {noformat}
> fails w/ this on current trunk... looks like silly floating point precision issue:
> {noformat}
> [junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>)
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
> [junit]
> [junit] ------------- Standard Error -----------------
> [junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> [junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
> [junit] NOTE: all tests run in this JVM:
> [junit] [TestSimpleExplanations]
> [junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
> [junit] ------------- ---------------- ---------------
> [junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
> [junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
> [junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
> [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
> [junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
> [junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
> [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
> [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
> [junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
> [junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
> [junit]
> [junit]
> [junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Updated] (LUCENE-3478) TestSimpleExplanations failure
Posted by "Robert Muir (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-3478:
--------------------------------
Description:
{noformat}
ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=-7e984babece66153:3e3298ae627b33a9:3093059db62bcc71
{noformat}
fails w/ this on current trunk... looks like silly floating point precision issue:
{noformat}
[junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>)
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
[junit]
[junit] ------------- Standard Error -----------------
[junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
[junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
[junit] NOTE: all tests run in this JVM:
[junit] [TestSimpleExplanations]
[junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
[junit] ------------- ---------------- ---------------
[junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
[junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>
[junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>
[junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
[junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
[junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
[junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
[junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
[junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
[junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
[junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
[junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
[junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
[junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
[junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
[junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
[junit]
[junit]
[junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
{noformat}
was:
{noformat}
ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
{noformat}
fails w/ this on current trunk... looks like silly floating point precision issue:
{noformat}
[junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>)
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
[junit]
[junit] ------------- Standard Error -----------------
[junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
[junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
[junit] NOTE: all tests run in this JVM:
[junit] [TestSimpleExplanations]
[junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
[junit] ------------- ---------------- ---------------
[junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
[junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>
[junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
[junit] 1.4508595 = (MATCH) sum of:
[junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
[junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 1.287682 = queryWeight, product of:
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
[junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
[junit] ), product of:
[junit] 128768.2 = queryWeight, product of:
[junit] 100000.0 = boost
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 1.0 = queryNorm
[junit] 1.1267219 = fieldWeight in 2, product of:
[junit] 1.0 = tf(freq=1.0), with freq of:
[junit] 1.0 = termFreq=1
[junit] 1.287682 = idf(docFreq=2, maxDocs=4)
[junit] 0.875 = fieldNorm(doc=2)
[junit] expected:<145086.66> but was:<145086.69>
[junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
[junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
[junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
[junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
[junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
[junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
[junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
[junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
[junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
[junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
[junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
[junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
[junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
[junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
[junit]
[junit]
[junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
{noformat}
update description with seed value that works with trunk
> TestSimpleExplanations failure
> ------------------------------
>
> Key: LUCENE-3478
> URL: https://issues.apache.org/jira/browse/LUCENE-3478
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/search
> Reporter: Michael McCandless
> Fix For: 4.0
>
>
> {noformat}
> ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=-7e984babece66153:3e3298ae627b33a9:3093059db62bcc71
> {noformat}
> fails w/ this on current trunk... looks like silly floating point precision issue:
> {noformat}
> [junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>)
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
> [junit]
> [junit] ------------- Standard Error -----------------
> [junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> [junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
> [junit] NOTE: all tests run in this JVM:
> [junit] [TestSimpleExplanations]
> [junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
> [junit] ------------- ---------------- ---------------
> [junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
> [junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
> [junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
> [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
> [junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
> [junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
> [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
> [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
> [junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
> [junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
> [junit]
> [junit]
> [junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (LUCENE-3478) TestSimpleExplanations failure
Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118614#comment-13118614 ]
Robert Muir commented on LUCENE-3478:
-------------------------------------
LUCENE-3480 changed up random seeds... sorry, i'm beasting this test for a new one :)
> TestSimpleExplanations failure
> ------------------------------
>
> Key: LUCENE-3478
> URL: https://issues.apache.org/jira/browse/LUCENE-3478
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/search
> Reporter: Michael McCandless
> Fix For: 4.0
>
>
> {noformat}
> ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> {noformat}
> fails w/ this on current trunk... looks like silly floating point precision issue:
> {noformat}
> [junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>)
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
> [junit]
> [junit] ------------- Standard Error -----------------
> [junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> [junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
> [junit] NOTE: all tests run in this JVM:
> [junit] [TestSimpleExplanations]
> [junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
> [junit] ------------- ---------------- ---------------
> [junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
> [junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
> [junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
> [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
> [junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
> [junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
> [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
> [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
> [junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
> [junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
> [junit]
> [junit]
> [junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Updated] (LUCENE-3478) TestSimpleExplanations failure
Posted by "Robert Muir (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-3478:
--------------------------------
Attachment: LUCENE-3478.patch
here's one possible solution: rather than have a hardcoded floating point delta we can use a relative one for score vs. explain comparisons.
> TestSimpleExplanations failure
> ------------------------------
>
> Key: LUCENE-3478
> URL: https://issues.apache.org/jira/browse/LUCENE-3478
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/search
> Reporter: Michael McCandless
> Fix For: 4.0
>
> Attachments: LUCENE-3478.patch
>
>
> {noformat}
> ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=-7e984babece66153:3e3298ae627b33a9:3093059db62bcc71
> {noformat}
> fails w/ this on current trunk... looks like silly floating point precision issue:
> {noformat}
> [junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>)
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
> [junit]
> [junit] ------------- Standard Error -----------------
> [junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> [junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
> [junit] NOTE: all tests run in this JVM:
> [junit] [TestSimpleExplanations]
> [junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
> [junit] ------------- ---------------- ---------------
> [junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
> [junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
> [junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
> [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
> [junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
> [junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
> [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
> [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
> [junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
> [junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
> [junit]
> [junit]
> [junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (LUCENE-3478) TestSimpleExplanations failure
Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118611#comment-13118611 ]
Robert Muir commented on LUCENE-3478:
-------------------------------------
Hmm good find: maybe DefaultSimilarity's explain() should be more carefully implemented so that order of operations is the same?
Depending upon your implementation of queryNorm (RandomSimilarityProvider is disabling it in this situation), then the differences
between score and explain due to floating point precision can be quite severe?
> TestSimpleExplanations failure
> ------------------------------
>
> Key: LUCENE-3478
> URL: https://issues.apache.org/jira/browse/LUCENE-3478
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/search
> Reporter: Michael McCandless
> Fix For: 4.0
>
>
> {noformat}
> ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> {noformat}
> fails w/ this on current trunk... looks like silly floating point precision issue:
> {noformat}
> [junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>)
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
> [junit]
> [junit] ------------- Standard Error -----------------
> [junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> [junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
> [junit] NOTE: all tests run in this JVM:
> [junit] [TestSimpleExplanations]
> [junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
> [junit] ------------- ---------------- ---------------
> [junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
> [junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
> [junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
> [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
> [junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
> [junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
> [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
> [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
> [junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
> [junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
> [junit]
> [junit]
> [junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Resolved] (LUCENE-3478) TestSimpleExplanations failure
Posted by "Robert Muir (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-3478.
---------------------------------
Resolution: Fixed
Assignee: Robert Muir
thanks mike, selckin for reporting these seeds.
> TestSimpleExplanations failure
> ------------------------------
>
> Key: LUCENE-3478
> URL: https://issues.apache.org/jira/browse/LUCENE-3478
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/search
> Reporter: Michael McCandless
> Assignee: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3478.patch, LUCENE-3478.patch
>
>
> {noformat}
> ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=-7e984babece66153:3e3298ae627b33a9:3093059db62bcc71
> {noformat}
> fails w/ this on current trunk... looks like silly floating point precision issue:
> {noformat}
> [junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>)
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
> [junit]
> [junit] ------------- Standard Error -----------------
> [junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> [junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
> [junit] NOTE: all tests run in this JVM:
> [junit] [TestSimpleExplanations]
> [junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
> [junit] ------------- ---------------- ---------------
> [junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
> [junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
> [junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
> [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
> [junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
> [junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
> [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
> [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
> [junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
> [junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
> [junit]
> [junit]
> [junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Updated] (LUCENE-3478) TestSimpleExplanations failure
Posted by "Robert Muir (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-3478:
--------------------------------
Attachment: LUCENE-3478.patch
oops, apparently TestComplexExplanations tests some crazy queries that return negative scores... so this works better.
> TestSimpleExplanations failure
> ------------------------------
>
> Key: LUCENE-3478
> URL: https://issues.apache.org/jira/browse/LUCENE-3478
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/search
> Reporter: Michael McCandless
> Fix For: 4.0
>
> Attachments: LUCENE-3478.patch, LUCENE-3478.patch
>
>
> {noformat}
> ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=-7e984babece66153:3e3298ae627b33a9:3093059db62bcc71
> {noformat}
> fails w/ this on current trunk... looks like silly floating point precision issue:
> {noformat}
> [junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>)
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.544 sec
> [junit]
> [junit] ------------- Standard Error -----------------
> [junit] NOTE: reproduce with: ant test -Dtestcase=TestSimpleExplanations -Dtestmethod=testDMQ8 -Dtests.seed=144152895b276837:eb7ba4953db943f:33373b79a971db02
> [junit] NOTE: test params are: codec=PreFlex, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=DefaultSimilarity, alt=DFR I(ne)LZ(0.3), KEY=IB LL-D2}, locale=en_IN, timezone=Pacific/Samoa
> [junit] NOTE: all tests run in this JVM:
> [junit] [TestSimpleExplanations]
> [junit] NOTE: Linux 2.6.33.6-147.fc13.x86_64 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=24,threads=1,free=130426744,total=189988864
> [junit] ------------- ---------------- ---------------
> [junit] Testcase: testDMQ8(org.apache.lucene.search.TestSimpleExplanations): FAILED
> [junit] ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] junit.framework.AssertionFailedError: ((field:yy field:w5^100.0) | field:xx^100000.0)~0.5: score(doc=2)=145086.66 != explanationScore=145086.69 Explanation: 145086.69 = (MATCH) max plus 0.5 times others of:
> [junit] 1.4508595 = (MATCH) sum of:
> [junit] 1.4508595 = (MATCH) weight(field:yy in 2) [DefaultSimilarity], result of:
> [junit] 1.4508595 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 1.287682 = queryWeight, product of:
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] 145085.95 = (MATCH) weight(field:xx^100000.0 in 2) [DefaultSimilarity], result of:
> [junit] 145085.95 = score(doc=2,freq=1.0 = termFreq=1
> [junit] ), product of:
> [junit] 128768.2 = queryWeight, product of:
> [junit] 100000.0 = boost
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 1.0 = queryNorm
> [junit] 1.1267219 = fieldWeight in 2, product of:
> [junit] 1.0 = tf(freq=1.0), with freq of:
> [junit] 1.0 = termFreq=1
> [junit] 1.287682 = idf(docFreq=2, maxDocs=4)
> [junit] 0.875 = fieldNorm(doc=2)
> [junit] expected:<145086.66> but was:<145086.69>
> [junit] at org.apache.lucene.search.CheckHits.verifyExplanation(CheckHits.java:324)
> [junit] at org.apache.lucene.search.CheckHits$ExplanationAsserter.collect(CheckHits.java:494)
> [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:60)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:580)
> [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:363)
> [junit] at org.apache.lucene.search.CheckHits.checkExplanations(CheckHits.java:302)
> [junit] at org.apache.lucene.search.QueryUtils.checkExplanations(QueryUtils.java:92)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:126)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:122)
> [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:106)
> [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHits.java:89)
> [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanations.java:99)
> [junit] at org.apache.lucene.search.TestSimpleExplanations.testDMQ8(TestSimpleExplanations.java:224)
> [junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:611)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:148)
> [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
> [junit]
> [junit]
> [junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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