Method: EsClient::ActiveRecord::Glue::ClassMethods#es_client_reindex_with_progress

Defined in:
lib/es_client/active_record/glue.rb

#es_client_reindex_with_progress(options = {}) ⇒ Object



47
48
49
50
51
# File 'lib/es_client/active_record/glue.rb', line 47

def es_client_reindex_with_progress(options={})
  find_in_batches_with_progress(options) do |batch|
    es_client.import(batch)
  end
end