From 179750f0f5a22303bb3f110e076c893a1aaf72ad Mon Sep 17 00:00:00 2001 From: Luca Cavanna Date: Thu, 13 Feb 2014 13:36:20 +0100 Subject: [PATCH] [DOCS] fixed count docs, it now requires a top-level query object, same as other apis Relates to #4074 --- docs/reference/search/count.asciidoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/reference/search/count.asciidoc b/docs/reference/search/count.asciidoc index f083e807a62..a7036c1a6fd 100644 --- a/docs/reference/search/count.asciidoc +++ b/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" } + } }' --------------------------------------------------