如何在elasticsearch上完成此操作?
Can't merge because of conflicts:
[Cannot update enabled setting for [_source],
Cannot update excludes setting for [_source]]
我这样写:
PUT /my_index/_mapping/article {
"article": {
"_source": {
"excludes": [ "date"]
}
} }
但结果是:
{ "error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Can't merge because of conflicts: [Cannot update enabled setting for [_source], Cannot update excludes setting
for [_source]]"
}
],
"type": "illegal_argument_exception",
"reason": "Can't merge because of conflicts: [Cannot update enabled setting for [_source], Cannot update excludes setting for
[_source]]" }, "status": 400 }