Handling elasticsearch issue #33: https://github.com/elasticsearch/elasticsearch-js/issues/33