I\'m working on updating code to handle an update from ElasticSearch 6 to 7. This version changes how the total number of hits works (documentation). I\'m new to using this