You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2006/11/04 23:39:38 UTC

[jira] Commented: (LUCENE-697) Scorer.skipTo affects sloppyPhrase scoring

    [ http://issues.apache.org/jira/browse/LUCENE-697?page=comments#action_12447205 ] 
            
Yonik Seeley commented on LUCENE-697:
-------------------------------------

Thanks for tackling this one Doron!
Wow is that phrase code complex!  I think I may need to step through an example or two before I really get it.
Anyway, the changes you suggest all look logical in context... It's just some of the rest of the phrase scoring code I'm still trying to understand.

Regarding the sort:
+      if (pp1.position == pp2.position)
+        return pp1.position+pp1.offset < pp2.position+pp2.offset;

Surely this degenerates to 
      if (pp1.position == pp2.position)
         return pp1.offset < pp2.offset;

> 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
>         Assigned To: Doron Cohen
>         Attachments: sloppy_phrase_skipTo.patch, sloppy_phrase_skipTo.patch2
>
>
> 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