Extract term statistics from a ElasticSearch instance