lib/elasticsearch/api/actions/bulk.rb in elasticsearch-api-1.0.15 vs lib/elasticsearch/api/actions/bulk.rb in elasticsearch-api-1.0.16.pre

- old
+ new

@@ -2,11 +2,12 @@ module API module Actions # Perform multiple index, delete or update operations in a single request. # - # Pass the operations in the `:body` option as an array of hashes, following Elasticsearch conventions. - # For operations which take data, pass them as the `:data` option in the operation hash. + # Supports various different formats of the payload: Array of Strings, Header/Data pairs, + # or the conveniency "combined" format where data is passed along with the header + # in a single item in a custom `:data` key. # # @example Perform three operations in a single request, passing actions and data as an array of hashes # # client.bulk body: [ # { index: { _index: 'myindex', _type: 'mytype', _id: 1 } },