How did you know I need it? ![]()
Is this only syntax sugar compared to "size":0 approach or is there any
valuable optimization?
Regards,
Lukas
On Wed, Feb 23, 2011 at 11:31 PM, Shay Banon
shay.banon@elasticsearch.comwrote:
Heya,
Just pushed support for a new
search_typecalledcount. This will
return (and optimize) to only provide the total_hits, while still returning
things like facets.A hack to do that was to set size to 0, but with the new search type, it
will be much more optimized to compute just the total_hits.-shay.banon