Add support Elasticsearch 1.x version of gem