index_rollover
Manages index lifecycle by automatically creating new indices when specified conditions are met, such as age, document count, or size thresholds.
Instructions
滚动索引
参数:
alias: 别名名称
conditions: 滚动条件
settings: 新索引设置
mappings: 新索引映射
示例:
index_rollover("logs", conditions={
"max_age": "7d",
"max_docs": 1000000,
"max_size": "5gb"
})
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | ||
| conditions | No | ||
| settings | No | ||
| mappings | No |