mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 18:03:32 -04:00
[DOCS] delete by query requires a top-level query parameter
Closes #5044
This commit is contained in:
parent
730847fcee
commit
1e265b3228
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ body. Here is an example:
|
||||||
$ curl -XDELETE 'http://localhost:9200/twitter/tweet/_query?q=user:kimchy'
|
$ curl -XDELETE 'http://localhost:9200/twitter/tweet/_query?q=user:kimchy'
|
||||||
|
|
||||||
$ curl -XDELETE 'http://localhost:9200/twitter/tweet/_query' -d '{
|
$ curl -XDELETE 'http://localhost:9200/twitter/tweet/_query' -d '{
|
||||||
"term" : { "user" : "kimchy" }
|
"query" : {
|
||||||
|
"term" : { "user" : "kimchy" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
'
|
'
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue