count
Count documents in an Easysearch index, optionally filtering results with query parameters to track specific data subsets.
Instructions
统计文档数量
参数:
index: 索引名称
query: 查询条件(可选)
示例:
count("products")
count("products", query={"term": {"status": "active"}})
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"index": "<index>"
},
"name": "count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| query | No |