Browse Source

[DOCS] fixed count docs, it now requires a top-level query object, same as other apis

Relates to #4074
Luca Cavanna 11 years ago
parent
commit
179750f0f5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/reference/search/count.asciidoc

+ 3 - 1
docs/reference/search/count.asciidoc

@@ -14,7 +14,9 @@ $ curl -XGET 'http://localhost:9200/twitter/tweet/_count?q=user:kimchy'
 
 $ curl -XGET 'http://localhost:9200/twitter/tweet/_count' -d '
 {
-    "term" : { "user" : "kimchy" }
+    "query" : {
+        "term" : { "user" : "kimchy" }
+    }
 }'
 --------------------------------------------------