elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

Elasticsearch::API::Actions#delete_by_query

Delete documents which match specified query.

Provide the query either as a "query string" query in the `:q` argument, or using the Elasticsearch's
[Query DSL](http://www.elasticsearch.org/guide/reference/query-dsl/) in the `:body` argument.

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Elasticsearch--API--Actions-delete_by_query-for-pr


# Commit to git

git add elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rbgit commit -m "better docs for Elasticsearch::API::Actions#delete_by_query"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Elasticsearch--API--Actions-delete_by_query-for-pr

hub pull-request


# Celebrate!