lucene-dev mailing list archives

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


Adrien Grand commented on LUCENE-4903:

bq. So we don't need the weak map anymore right?

It could still be useful to Scorers that override {{score(Collector collector)}} and call
{{collector.setScorer(this)}} in the body of this method I think.

bq. maybe AssertingWeight's scorer() method should create a new Random(random.nextLong())
to pass to the AssertingScorer when it creates it?

Good point. I'll update the patch.
> 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