elasticsearch-rails
https://github.com/elastic/elasticsearch-rails
Ruby
Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
Elasticsearch::Model::Adapter::ActiveRecord::Importing#__find_in_batches
Fetch batches of records from the database (used by the import method)
Edit
git clone [email protected]:elastic/elasticsearch-rails.git
cd elasticsearch-rails
open elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--Model--Adapter--ActiveRecord--Importing-__find_in_batches-for-pr
# Commit to gitgit add elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rbgit commit -m "better docs for Elasticsearch::Model::Adapter::ActiveRecord::Importing#__find_in_batches"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Elasticsearch--Model--Adapter--ActiveRecord--Importing-__find_in_batches-for-pr
hub pull-request
# Celebrate!