index_put_mapping
Add new fields to an Elasticsearch/OpenSearch index mapping without modifying existing fields. Define field properties and dynamic mapping strategy for data structure updates.
Instructions
更新索引映射(只能添加字段,不能修改已有字段)
参数:
index: 索引名称
properties: 字段定义
dynamic: 动态映射策略 true/false/strict
示例:
index_put_mapping("products",
properties={"category": {"type": "keyword"}}
)
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>",
"properties": "<properties>"
},
"name": "index_put_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| properties | Yes | ||
| dynamic | No |