I'm using the Elastic Search php client (this one). I'm trying to get the total number of documents in a type, but can't figure out how to do it. Any help would be greatly appreciated.
Here's what I've tried:
$params['index'] = $index_name;
$params['type'] = 'applicant';
$applicants_count = Es::count($params)["count"];
But that always seems to return 0.