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

Adrien Grand commented on LUCENE-7872:
--------------------------------------

[~hossman] Doesn't {{DocList}} only represent results from a single shard? In 
that case, keeping an int would still work since the number of docs in a shard 
is still bound by the integer max value. We only have the issue with TopDocs 
because it is sometimes used to represent top results for the union of multiple 
shards because of {{TopDocs#merge}}.

> TopDocs.totalHits should be a long
> ----------------------------------
>
>                 Key: LUCENE-7872
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7872
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7872.patch, LUCENE-7872.patch
>
>
> Even though a single index cannot have more than 2B documents, TopDocs.merge 
> might merge TopDocs instances that have more than 2B documents in total.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to