Fixes https://github.com/FronterAS/elasticsearch-wrapper/issues/4