elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Elasticsearch::API::Actions#scroll
Efficiently iterate over a large result set. When using `from` and `size` to return a large result sets, performance drops as you "paginate" in the set, and you can't guarantee the consistency when the index is being updated at the same time. "Scrolling" the results is frequently used with the `scan` search type.
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--API--Actions-scroll-for-pr
# Commit to gitgit add elasticsearch-api/lib/elasticsearch/api/actions/scroll.rbgit commit -m "better docs for Elasticsearch::API::Actions#scroll"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Elasticsearch--API--Actions-scroll-for-pr
hub pull-request
# Celebrate!