Elasticsearch 9 · Documents

Count documents

Count the documents in an index.

curl -u elastic:$ELASTIC_PASSWORD --cacert http_ca.crt "https://localhost:9200/products/_count?pretty"

Official Elasticsearch 9 documentation

More documents commands

All documents commands · Elasticsearch 9 cheatsheet

Was this page helpful?