Method: Elastics::Client::Bulk#bulk
- Defined in:
- lib/elastics/client/bulk.rb
#bulk(params = {}) {|builder| ... } ⇒ Object
4 5 6 7 8 9 10 |
# 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 |