[ http://issues.apache.org/jira/browse/LUCENE-697?page=comments#action_12444565 ] Yonik Seeley commented on LUCENE-697: -------------------------------------
Here's the ant output from test code to be checked in shortly. The test code calls skipTo(), skipTo(), next(), next(), etc while checking that the results match the hitcollector version. [junit] Testcase: testP6(org.apache.lucene.search.TestSimpleExplanations): Caused an ERROR [junit] ERROR matching docs: [junit] scorer.more=true doc=1 score=0.7849069 [junit] hitCollector.doc=1 score=0.67974937 [junit] Scorer=scorer(weight(field:"w3 w2"~2)) [junit] Query=field:"w3 w2"~2 [junit] [EMAIL PROTECTED] [junit] java.lang.RuntimeException: ERROR matching docs: [junit] scorer.more=true doc=1 score=0.7849069 [junit] hitCollector.doc=1 score=0.67974937 [junit] Scorer=scorer(weight(field:"w3 w2"~2)) [junit] Query=field:"w3 w2"~2 [junit] [EMAIL PROTECTED] [junit] at org.apache.lucene.search.QueryUtils$2.collect(QueryUtils.java :104) [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:48) [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.j ava:132) [junit] at org.apache.lucene.search.Searcher.search(Searcher.java:116) [junit] at org.apache.lucene.search.Searcher.search(Searcher.java:95) [junit] at org.apache.lucene.search.QueryUtils.checkSkipTo(QueryUtils.ja va:97) [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:75) [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHit s.java:91) [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanati ons.java:90) [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanati ons.java:86) [junit] at org.apache.lucene.search.TestSimpleExplanations.testP6(TestSi mpleExplanations.java:87) [junit] Testcase: testP7(org.apache.lucene.search.TestSimpleExplanations): Caused an ERROR [junit] ERROR matching docs: [junit] scorer.more=true doc=1 score=0.7849069 [junit] hitCollector.doc=1 score=0.67974937 [junit] Scorer=scorer(weight(field:"w3 w2"~3)) [junit] Query=field:"w3 w2"~3 [junit] [EMAIL PROTECTED] [junit] java.lang.RuntimeException: ERROR matching docs: [junit] scorer.more=true doc=1 score=0.7849069 [junit] hitCollector.doc=1 score=0.67974937 [junit] Scorer=scorer(weight(field:"w3 w2"~3)) [junit] Query=field:"w3 w2"~3 [junit] [EMAIL PROTECTED] [junit] at org.apache.lucene.search.QueryUtils$2.collect(QueryUtils.java :104) [junit] at org.apache.lucene.search.Scorer.score(Scorer.java:48) [junit] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.j ava:132) [junit] at org.apache.lucene.search.Searcher.search(Searcher.java:116) [junit] at org.apache.lucene.search.Searcher.search(Searcher.java:95) [junit] at org.apache.lucene.search.QueryUtils.checkSkipTo(QueryUtils.ja va:97) [junit] at org.apache.lucene.search.QueryUtils.check(QueryUtils.java:75) [junit] at org.apache.lucene.search.CheckHits.checkHitCollector(CheckHit s.java:91) [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanati ons.java:90) [junit] at org.apache.lucene.search.TestExplanations.qtest(TestExplanati ons.java:86) [junit] at org.apache.lucene.search.TestSimpleExplanations.testP7(TestSi mpleExplanations.java:90) [junit] Test org.apache.lucene.search.TestSimpleExplanations FAILED > Scorer.skipTo affects sloppyPhrase scoring > ------------------------------------------ > > Key: LUCENE-697 > URL: http://issues.apache.org/jira/browse/LUCENE-697 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 2.0.0 > Reporter: Yonik Seeley > > If you mix skipTo() and next(), you get different scores than what is > returned to a hit collector. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - 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]