Method: Elastictastic::Client#update

Defined in:
lib/elastictastic/client.rb

#update(index, type, id, doc, params = {}) ⇒ Object



50
51
52
53
54
55
# File 'lib/elastictastic/client.rb', line 50

def update(index, type, id, doc, params = {})
  @connection.put(
    path_with_query("/#{index}/#{type}/#{id}", params),
    doc
  ).body
end