Count documents
countTally documents in an Elasticsearch index, with optional Query DSL filtering to obtain the total matching documents.
Instructions
Count the documents in an index that match an optional Query DSL query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name, comma-separated list, or pattern | |
| query | No | Query DSL query object; omit to count every document |