[
https://issues.apache.org/jira/browse/LUCENE-6185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14279100#comment-14279100
]
Adrien Grand commented on LUCENE-6185:
--------------------------------------
Doc ids are already rebased with the doc base of each reader context before the
TopDocs.merge call so I think that would be fine? And then when we call
TopDocs.merge, we provide the top docs instances in the same order as leaves
have been provided to IndexSearcher.search so tie-breaking by shard id has the
same effect as tie-breaking by doc id?
> Fix IndexSearcher with threads to not collect documents out of order
> --------------------------------------------------------------------
>
> Key: LUCENE-6185
> URL: https://issues.apache.org/jira/browse/LUCENE-6185
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Priority: Blocker
> Fix For: 5.0, Trunk
>
> Attachments: LUCENE-6185.patch
>
>
> When created with an executor, IndexSearcher searches all leaves in a
> different task and eventually merges the results when all tasks are
> completed. However, this merging logic involves a TopFieldCollector which is
> collected out-of-order. I think it should just use TopDocs.merge?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]