lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <>
Subject [jira] [Updated] (LUCENE-4903) Add AssertingScorer
Date Wed, 10 Apr 2013 00:04:16 GMT


Adrien Grand updated LUCENE-4903:

    Attachment: LUCENE-4903.patch

New patch:

 * borrows Robert's idea to no delegate if the method has not been overridden,

 * AssertingScorer.score(Collector) either calls score(Collector) or score(Collector, NO_MORE_DOCS,
nextDoc()) depending on random().nextBoolean()

 * modifies some join scorers so that nextDoc throws UOE instead of iterating out of order

 * adds an assertion to Scorer.score(Collector) to make sure that iteration has not started
before this method is called

 * adds an assertion to Scorer.score(Collector, int, int) to make sure that docID() == firstDocID
> Add AssertingScorer
> -------------------
>                 Key: LUCENE-4903
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-4903.patch, LUCENE-4903.patch
> I think we would benefit from having an AssertingScorer that would assert that scorers
are advanced correctly, return valid scores (eg. not NaN), ...

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

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

View raw message