[ 
https://issues.apache.org/jira/browse/LUCENE-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13924088#comment-13924088
 ] 

Michael McCandless commented on LUCENE-5501:
--------------------------------------------

+1, I love this patch.  You shuffle the docIDs from the scorer before 
delivering to the collector, if the collector claims it can accept out-of-order 
hits.

LUCENE-4950 is related: I tried to fix AssertingIndexSearcher to use 
AssertingCollector but hit strange exceptions with ConstantScoreQuery that I 
never explained.  AssertingCollector would verify that if the collector said it 
could not accept docs out of order, then the scorer does not in fact deliver 
docs out of order.

Also, LUCENE-5487 will increase how often out-of-order scoring is "allowed", 
because BooleanScorer will now allow the sub-scorers to score out of 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to