Adjust for ElasticSearch 1.0 API changes.