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

Relates to #4074
This commit is contained in:
Luca Cavanna 2014-02-13 13:36:20 +01:00
parent 9902f04033
commit 179750f0f5
1 changed files with 3 additions and 1 deletions

View File

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