Closed jakewrfoster closed 4 years ago
ES 7+ changed hits.total to an object containing hits.total.value and hits.total.relation. This PR allows backward compat but also favors ES v7's data structure.
hits.total.value
hits.total.relation
https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#hits-total-now-object-search-response
Overview
ES 7+ changed hits.total to an object containing
hits.total.value
andhits.total.relation
. This PR allows backward compat but also favors ES v7's data structure.More information
https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#hits-total-now-object-search-response