Open lukasolson opened 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.
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
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.