New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support of the count api when using field collapsing #27556
Comments
Retrieving the total number of group that match a query in a distributed system is not trivial and can be very costly. |
Thank you for such detail explanation. Yes, as workaround for now I am using |
It is costly to compute even with the |
For the now impossible execute this kinds of queries by count api https://www.elastic.co/guide/en/elasticsearch/reference/5.6/search-count.html . We can do search but cann't do only count. Also
hits.total
field in response displays total count of documents before they was collapsed. It would be nice add something likehits.total_collapsed
for getting count of total collapsed documents.The text was updated successfully, but these errors were encountered: