Method: Estella::Helpers::ClassMethods#bulk_index

Defined in:
lib/estella/helpers.rb

#bulk_index(batch_of_ids) ⇒ Object



64
65
66
67
# File 'lib/estella/helpers.rb', line 64

def bulk_index(batch_of_ids)
  create_index! unless index_exists?
  __elasticsearch__.client.bulk index: index_name, body: batch_to_bulk(batch_of_ids)
end