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-696) Scorer.skipTo() doesn't always work if called before next()
Date Tue, 24 Oct 2006 20:46:04 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-696?page=comments#action_12444500 ] 
            
Yonik Seeley commented on LUCENE-696:
-------------------------------------

It would also simplify some scorers if doc() wasn't undefined before next() or skipTo() was
called, but instead -1.
This undefined nature of doc() often requires more state to be kept around about the scorers.
Things like TermScorer would just need a change from "int doc" to "int doc=-1"

Is there any scorer that this would impose a burden or cost on?
Thoughts?

> Scorer.skipTo() doesn't always work if called before next()
> -----------------------------------------------------------
>
>                 Key: LUCENE-696
>                 URL: http://issues.apache.org/jira/browse/LUCENE-696
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Yonik Seeley
>
> skipTo() doesn't work for all scorers if called before next().

-- 
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