Method: Elasticsearch::Resources::Document#update

Defined in:
lib/elasticsearch/resources/document.rb

#update(options = {}) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/elasticsearch/resources/document.rb', line 46

def update(options = {})
  params = {
    body: attributes
  }.merge(options)

  query(:update, params)
end