Elasticsearch 1.1 compatibility

Signed-off-by: chatgris <jboyer@af83.com>