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 Sat, 04 Nov 2006 22:39:38 GMT
    [ 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


Mime
View raw message