Counting number of documents using Elasticsearch
Probably _count is a bit faster since it doesn’t have to execute a full query with ranking and result fetching and can simply return the size. It would be interesting to know a bit more about how you manage to get different results though. For that I need more information like what exact queries you … Read more