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

Adrien Grand commented on LUCENE-10600:
---------------------------------------

bq. should we also make SortedSetDocValues#nextOrd() returns int

No, SORTED_SET doc values could have more than Integer.MAX_VALUE unique values 
overall. SortedSetDocValuesWriter does indeed use ints to represent term IDs, 
but this class is only used for flushes and flushes have a hard bound of ~2GB 
per thread so you can't have more than Integer.MAX_VALUE unique terms in a 
flush. However, the unique count of terms can grow through merges beyond 
Integer.MAX_VALUE.

> SortedSetDocValues#docValueCount should be an int, not long
> -----------------------------------------------------------
>
>                 Key: LUCENE-10600
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10600
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Lu Xugang
>            Priority: Minor
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to