Browse Source

[DOCS] delete by query requires a top-level query parameter

Closes #5044
(cherry picked from commit 1e265b3)
David Pilato 11 years ago
parent
commit
444dff7b40
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/reference/docs/delete-by-query.asciidoc

+ 3 - 1
docs/reference/docs/delete-by-query.asciidoc

@@ -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' -d '{
-    "term" : { "user" : "kimchy" }
+    "query" : {
+        "term" : { "user" : "kimchy" }
+    }
 }
 '
 --------------------------------------------------