-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Analytics/AggregationsAggregationsAggregations:Search Foundations/SearchCatch all for Search FoundationsCatch all for Search Foundations>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)Team:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch
Description
Description
Lucene's SortedSetDocValues got a new SortedSetDocValues#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 consume count ords instead of iterating all ords until NO_MORE_ORDS is returned.
This should speed up some queries, e.g. value_count aggregations through the refactoring of FieldData#toString(SortedSetDocValues) to not iterate through all values to figure out the number of values.
Metadata
Metadata
Assignees
Labels
:Analytics/AggregationsAggregationsAggregations:Search Foundations/SearchCatch all for Search FoundationsCatch all for Search Foundations>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)Team:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch