增加映射
创建索引并增加索引映射,请求:
PUT secisland3
{
"mappings": {
"properties": {
"message":{
"type": "text"
},
"city":{
"type": "keyword"
}
}
}
}
返回:
{
"acknowledged" : true,
"shards_acknowledged" : true,
"index" : "secisland3"
}
索引已存在,增加映射并新增字段create_time:
请求:
PUT secisland3/_mappings
{
"properties": {
"message":{
"type": "text"
},
"city":{
"type": "keyword"
},
"create_time":{
"