elasticsearch-rails

https://github.com/elastic/elasticsearch-rails

Ruby

Elasticsearch integrations for ActiveModel/Record and Ruby on Rails

Elasticsearch::Model::Importing::ClassMethods#import

Import all model records into the index

The method will pick up correct strategy based on the `Importing` module
defined in the corresponding adapter.

   Article.import preprocess: :enrich

   Article.import return: 'errors'

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-rails.git

cd elasticsearch-rails

open elasticsearch-model/lib/elasticsearch/model/importing.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Elasticsearch--Model--Importing--ClassMethods-import-for-pr


# Commit to git

git add elasticsearch-model/lib/elasticsearch/model/importing.rbgit commit -m "better docs for Elasticsearch::Model::Importing::ClassMethods#import"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Elasticsearch--Model--Importing--ClassMethods-import-for-pr

hub pull-request


# Celebrate!