這是在kibana中最簡單的添加方式
PUT index/_mapping
{
"properties":{
"new_field":{"type" : "keyword"}
}
}
嵌套文檔添加新字段
PUT index/_mapping
{
"properties": {
"personCerts": {
"type":"nested",
"properties": {
"certId": {
"type": "keyword"
}
}
}
}
}