搜索结果正在快递途中

Elasticsearch5.5无法修改已经PUT过的模板

Elasticsearch | 作者 century6 | 发布于2017年08月17日 | 阅读数:1971

在通过restful接口PUT过一个模板后,想修改其中几个字段的类型,发现如果想要通过POST修改该模板就会报错,说无法修改字段类型。尝试过删除模板再重新PUT新模板,但仍然报同样的错误。这样人百思不得其解,我同时尝试了删除掉所有相关的index,但仍然不行,求解啊~
所报的错误如下:
{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "mapper [start_time] cannot be changed from type [long] to [date]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "mapper [start_time] cannot be changed from type [long] to [date]"
  },
  "status": 400
}
已邀请:

novia - 1&0

赞同来自:

你这index是不是有多个type?

要回复问题请先登录注册