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