lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <>
Subject [jira] [Updated] (LUCENE-5501) Out-of-order collection testing
Date Fri, 07 Mar 2014 16:20:43 GMT


Adrien Grand updated LUCENE-5501:

    Attachment: LUCENE-5501.patch

Here is a simple patch I've been playing with:
 - AssertingWeight.scoresDocsOutOfOrder randomly returns true in order to trigger the use
of our top docs collectors that tie-break on doc id,
 - AssertingScorer randomly scores in random order when the collector says it supports it

It found a bug in the grouping collector whose acceptDocsOutOfOrder method returns true although
the collect method has a comment that explicitely says that the comparison works because doc
IDs come in order.

> Out-of-order collection testing
> -------------------------------
>                 Key: LUCENE-5501
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>         Attachments: LUCENE-5501.patch
> Collectors have the ability to declare whether or not they support out-of-order collection,
but since most scorers score in order this is not well tested.

This message was sent by Atlassian JIRA

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

View raw message