往已存在的index增加字段报错
{ -
"error": { -
"root_cause": [ -
{ -
"type": "illegal_argument_exception",
"reason": "Can't merge because of conflicts: [Cannot update excludes setting for [_source]]"
}
],
"type": "illegal_argument_exception",
"reason": "Can't merge because of conflicts: [Cannot update excludes setting for [_source]]"
},
"status": 400
}
我的语句:PUT my-index/_mapping
{
"properties": {
"content2": {
"analyzer": "ik_max_word",
"type": "text"
}
}
}
我的index{ -
"my-index": { -
"aliases": { -
},
"mappings": { -
"_all": { -
"enabled": false
},
"_source": { -
"excludes": [ -
"content"
]
},
"dynamic_templates": [ -
{ -
"str": { -
"match_mapping_type": "string",
"mapping": { -
"index": false,
"store": false,
"type": "keyword"
}
}
}
],
"properties": { -
"@timestamp": { -
"type": "date"
},
"content": { -
"type": "text",
"analyzer": "ik_max_word"
}
"sid": { -
"type": "keyword"
}
}
},
"settings": { -
"index": { -
"number_of_shards": "6",
"provided_name": "my-index",
"mapper": { -
"dynamic": "true"
},
"creation_date": "1572581052119",
"store": { -
"type": "niofs"
},
"number_of_replicas": "1",
"uuid": "aHHcjI_NQlyOUVcnkm1ZUg",
"version": { -
"created": "6040399",
"upgraded": "7070199"
}
}
}
}
}
2 个回复
God_lockin
赞同来自:
JiangJibo - 喊我雷锋
赞同来自:
es的源码: