Update to elasticsearch 1.0.0