module Elastics::Client::Bulk

Public Instance Methods

bulk(params = {}) { |builder| ... } click to toggle source
# File lib/elastics/client/bulk.rb, line 4
def bulk(params = {})
  builder = Builder.new
  yield builder
  if builder.any?
    request({body: builder.body, method: :post, id: :_bulk}.merge! params)
  end
end