[ 
http://issues.apache.org/jira/browse/LUCENE-697?page=comments#action_12445795 ] 
            
Doron Cohen commented on LUCENE-697:
------------------------------------

An updated version of this patch - sloppy_phrase_skipTo.patch2.

I modified QueryUtils.java (test util) to test all the sequences, not just one. 
It is also now quite easy to add a new sequence to be tested, if needed.

Other changes in this patch remain:
- PhraseQueue: this is the fix.
- ExactPhraseScorer: added call to clear queue - not a must, but cleaner this 
way.
- PhraseScorer: added mark that init done at skip - again not a must, just 
cleaner this way.

All "ant test" tests pass.

- Doron

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to