lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-697) Scorer.skipTo affects sloppyPhrase scoring
Date Wed, 25 Oct 2006 03:57:17 GMT
    [ 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]      Searcher=org.apache.lucene.search.IndexSearcher@118f375
    [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]      Searcher=org.apache.lucene.search.IndexSearcher@118f375
    [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]      Searcher=org.apache.lucene.search.IndexSearcher@1dd7056
    [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]      Searcher=org.apache.lucene.search.IndexSearcher@1dd7056
    [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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message