I'm writing a simple C# app that uses the NEST client for retrieving data from a local Elasticsearch instance. I have a small problem trying to get the number of all indexed (over all indices) documents. There is some documentation for the count() method for Elasticsearch 1.x here:
but the same site is not available for the current version, and also the simple .count() call doesn't work anymore as it requires some parameters.
I tried the search functionality on this forum because I think that this topic was somewhere discussed before, but all I've found were some count issues for nested documents - not a simple count() for indexed documents (without nested docs).
Could you please explain how to get the number of indexed documents in the current NEST client version?