Method: Stretcher::Index#bulk_index

Defined in:
lib/stretcher/index.rb

#bulk_index(documents, options = {}) ⇒ Object

Given a hash of documents, will bulk index

docs = [{"_type" => "tweet", "_id" => 91011, "text" => "Bulked"}]
server.index(:foo).bulk_index(docs)


40
41
42
# File 'lib/stretcher/index.rb', line 40

def bulk_index(documents, options={})
  bulk_action(:index, documents, options)
end