lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Elschot (JIRA)" <>
Subject [jira] Commented: (LUCENE-914) Scorer.skipTo(current) remains on current for some scorers
Date Mon, 08 Sep 2008 12:06:47 GMT


Paul Elschot commented on LUCENE-914:

Well, how about changing the TermDocs interface into an abstract subclass of DocIdSetIterator
That would allow the javadocs of the definition of skipTo() to be done in DocIdSetIterator
These javadocs could be taken directly from TermDocs.skipTo().

(As a bonus, implementing a TermFilter could be done by directly using a TermDocs.)

Such a change is not backward compatible (interface -> abstract class), but there are ways
to deal with that.

> Scorer.skipTo(current) remains on current for some scorers
> ----------------------------------------------------------
>                 Key: LUCENE-914
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>            Reporter: Doron Cohen
>            Priority: Minor
>         Attachments: lucene-914.patch
> Background in
> It appears that several scorers do not strictly follow the spec of Scorer.skipTo(n),
and skip to current location remain in current location whereas the spec says: "beyond current".

> We should (probably) either relax the spec or fix the implementations.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message