elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.48k stars 8.05k forks source link

[data.search] Remove legacy handling of hits total format #175155

Open lukasolson opened 5 months ago

lukasolson commented 5 months ago

Ever since Elasticsearch changed the format (7.0 I believe) it sends the number of hits, we have had special handling to convert it back for legacy purposes:

https://github.com/elastic/kibana/blob/f2ec53481450a717ffb56e7122a1100a11a65660/src/plugins/data/server/search/strategies/es_search/response_utils.ts#L42-L57

We should get rid of this special handling and make sure everywhere is updated to the new format.

elasticmachine commented 5 months ago

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)