jpountz commented on PR #11997:
URL: https://github.com/apache/lucene/pull/11997#issuecomment-1345272269

   > What if we always set the docvalue type to SORTED_NUMERIC, even if the 
user is just storing single values? Lucene will optimize the storage if all 
docs are single-valued, and it's already a common pattern to look for this 
optimization on read
   
   This sounds good to me. The main issue I see with this is that our default 
`SortField`s fail if the field is indexed with multi-valued doc values. But 
maybe we could make it more lenient and sort on the min value for ascending 
sorts and max values for descending sorts.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to