normalizing the interface to elasticsearch-ruby