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 Fri, 05 Apr 2013 16:27:16 GMT


Adrien Grand updated LUCENE-4903:

    Attachment: LUCENE-4903.patch


 * checks for in-order scoring when applicable

 * checks score values (not INFINITY or NaN)

 * checks that Scorer.score() is not called before iteration started or after it finished

 * reuses assertions of DocsEnum on Scorer

 * makes sure that nextDoc() and advance(target) are not called directly on "top scorers"
(only from score(Collector)).

 * makes more tests use LuceneTestCase.newSearcher (most of the patch size)
> Add AssertingScorer
> -------------------
>                 Key: LUCENE-4903
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: 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