Remove usage of SortedSetDocValues#NO_MORE_ORDS #88004
Labels
:Analytics/Aggregations
Aggregations
>enhancement
:Search Foundations/Search
Catch all for Search Foundations
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Description
Lucene's
SortedSetDocValues
got a newSortedSetDocValues#docValueCount
API that allows getting the number of values of a document without iterating through all values. We should change the iteration logic to use this count and consumecount
ords instead of iterating all ords untilNO_MORE_ORDS
is returned.This should speed up some queries, e.g.
value_count
aggregations through the refactoring ofFieldData#toString(SortedSetDocValues)
to not iterate through all values to figure out the number of values.The text was updated successfully, but these errors were encountered: