PUT index_name/type/_mapping
{
"properties": {
"nested类型字段名称": {
"type": "nested",
"properties": {
"新增属性字段名称": {
"type": "integer"
}
}
}
}
}
示例
PUT user_info/user/_mapping
{
"properties": {
"user": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
}
}
}
}
}
标签:name,mapping,nested,ElasticSearch,user,type,properties,属性
From: https://www.cnblogs.com/yourxiong/p/16882017.html