PUT /my_index
{
"mappings": {
"_default_": {
"_all": { "enabled": false },
"properties":{
"ip":{
"type":"ip"
}
}
},
"blog": {
"_all": { "enabled": true }
}
}
}
然后我想在_default_ 执行如下操作PUT /my_index/_mapping/_default_
{
"properties":{
"name":{
"type":"string"
}
}
}
然后查看mapping{
"my_index": {
"mappings": {
"_default_": {
"_all": {
"enabled": false
},
"properties": {
"name": {
"type": "string"
}
}
}
}
}
}
ip字段不见了,请问是为什么?
0 个回复