“由于冲突而无法合并:[无法更新[_source]的启用设置,无法更新排除了[_source]的设置”“

时间:2019-05-01 13:18:19

标签: elasticsearch

如何在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 }

0 个答案:

没有答案