更新索引设置
PUT /api/:target/_settings
请求示例
PUT http://localhost:4080/api/myindex/_settings
请求参数:
{
"analysis": {
"analyzer": {
"default": {
"type": "standard"
},
"my_analyzer": {
"tokenizer": "standard",
"char_filter": [
"my_mappings_char_filter"
]
}
},
"char_filter": {
"my_mappings_char_filter": {
"type": "mapping",
"mappings": [
":) => _happy_",
":( => _sad_"
]
}
}
}
}
索引设置可以在创建索引时指定