lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4903) Add AssertingScorer
Date Fri, 05 Apr 2013 16:27:16 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-4903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adrien Grand updated LUCENE-4903:
---------------------------------

    Attachment: LUCENE-4903.patch

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: https://issues.apache.org/jira/browse/LUCENE-4903
>             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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message