You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2014/03/07 17:20:43 UTC
[jira] [Updated] (LUCENE-5501) Out-of-order collection testing
[ https://issues.apache.org/jira/browse/LUCENE-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: https://issues.apache.org/jira/browse/LUCENE-5501
> 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
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org