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"}}
)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| properties | Yes | ||
| dynamic | No |