You can do the Match_All and then set the size to 0. They you will
just have to grab the "total hits" variable from the result set.
Shaun Farrell
On Thu, Jul 5, 2012 at 4:03 AM, Clinton Gormley clint@traveljury.com wrote:
Or with search_type:
$ curl -XPOST 'localhost:9200/_search?search_type=count&pretty=true' -d '
{"query" : { "match_all" : {}}}
'clint