Method: Elasticsearch::Model::Indexing::InstanceMethods#update_document_attributes
- Defined in:
- lib/elasticsearch/model/indexing.rb
#update_document_attributes(attributes, options = {}) ⇒ Hash
Perform a partial update of specific document attributes (without consideration for changed attributes as in #update_document)
448 449 450 451 452 453 454 |
# File 'lib/elasticsearch/model/indexing.rb', line 448 def update_document_attributes(attributes, ={}) request = { index: index_name, id: self.id, body: { doc: attributes } } client.update(request.merge!()) end |