Added support for Elasticsearch 1.2