adding support for elasticsearch/elasticsearch v1.1.x