更新索引设置
PUT /es/:target/_settings
请求示例
PUT http://localhost:4080/es/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_"
]
}
}
}
}
setting 也能够在创建索引的时候设置