I have around 2 million documents in my Index currently. Now I have some
pages where i have to show the statistics of the content. I just want the
total counts of the documents. But I have to use the complex filters, so
that i can count only the required documents. Mostly I'm using the "bool"
and "and" in my queries.
I think I can just send limit : 0 , to fetch the documents, and get the
total count from the "total hits", but I am not sure will it be fast or is
there any other way to just count the total documents.