def update(index, attributes, values_by_doc)
      response = Response.new request(
        :update,
        update_message(index, attributes, values_by_doc)
      )

      response.next_int
    end
def update(index, attributes, values_by_doc)
      response = Response.new request(
        :update,
        update_message(index, attributes, values_by_doc)
      )

      response.next_int
    end
Update attributes - first parameter is the relevant index, second is an
 array of attributes to be updated, and the third is a hash, where the
 keys are the document ids, and the values are arrays with the attribute
 values - in the same order as the second parameter.

 Example:

   client.update('people', ['birthday'], {1 => [Time.at(1982, 20, 8).to_i]})