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

Adrien Grand commented on LUCENE-8718:
--------------------------------------

Should we do it? Counts are required with numerics because they don't have a 
special value that can be used to signal that all values have been consumed. 
This change limits a bit what can be done in terms of encoding since it 
requires the count to be recorded explicitly. For instance I think the first 
implementation of SortedSet used to record deltas between consecutive ords as a 
set of vlongs in a binary doc-value field. This wouldn't be possible with this 
new API anymore.

> Add docValueCount support for SortedSetDocValues
> ------------------------------------------------
>
>                 Key: LUCENE-8718
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8718
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 7.7.1
>            Reporter: John Wang
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> implement docValueCount method for SortedSetDocValues, see comment:
>  
> [https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/index/SortedSetDocValues.java#L54]
>  
> Patch/PR: https://github.com/apache/lucene-solr/pull/603



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to