[ https://issues.apache.org/jira/browse/LUCENE-10600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545286#comment-17545286 ]
Vigya Sharma commented on LUCENE-10600: --------------------------------------- I'm curious why this is the case. Is it that the unique count of ordinals will always fit inside an int? I can help with this change, it looks like a minor fix. Browsing through the implementations for {{SortedSetDocValues#docValueCount}}, I noticed that {{SortingSortedSetDocValues#docValueCount()}} returns a long, which is coming from {{PackedLongValues#size()}}. I guess it stores integer ordinals compressed as PackedLongValues? Should this also be changed to an int? > 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