Pr update to 1.1.0

Update to 1.1.0

A lot of code is derived from https://github.com/tlrx/elasticsearch-test/pull/35 thanks to @svenmeys