count_docs
Count documents in an Elasticsearch index, with optional query filtering to match specific documents.
Instructions
Count documents matching a query.
Args: index: Index to count. query: Optional query to filter documents.
Returns: Document count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||