msearch
Execute multiple search queries in a single request to retrieve data from INFINI Easysearch, Elasticsearch, or OpenSearch indices simultaneously.
Instructions
多重搜索(一次请求执行多个搜索)
参数:
searches: 搜索列表,每项包含 header 和 body
示例:
msearch([
{"header": {"index": "products"}, "body": {"query": {"match": {"name": "iPhone"}}}},
{"header": {"index": "products"}, "body": {"query": {"match": {"name": "iPad"}}}}
])
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": {
"searches": "<searches>"
},
"name": "msearch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searches | Yes |