elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Elasticsearch::API::Actions#update
Update a document without sending the whole document in the request ("partial update").
Send either a partial document (`doc` ) which will be deeply merged into an existing document,
or a `script`, which will update the document content, in the `:body` argument.
The partial update operation allows you to limit the amount of data you send over the wire and
reduces the chance of failed updates due to conflict.
Specify the `:version` and `:retry_on_conflict` arguments to balance convenience and consistency.Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open elasticsearch-api/lib/elasticsearch/api/actions/update.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--API--Actions-update-for-pr
# Commit to gitgit add elasticsearch-api/lib/elasticsearch/api/actions/update.rbgit commit -m "better docs for Elasticsearch::API::Actions#update"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Elasticsearch--API--Actions-update-for-pr
hub pull-request
# Celebrate!