temp fix of paging bug

this commit are all the changes from https://github.com/elasticsearch/elasticsearch-rails/pull/42