个人随笔
目录
elasticsearch 6.0.0及之后移除了一个索引允许映射多个类型的操作(Removal of mapping types)
2019-04-03 01:09:45

本文在新建类型的时候报如下错误:

  1. {
  2. "error": {
  3. "root_cause": [
  4. {
  5. "type": "illegal_argument_exception",
  6. "reason": "Rejecting mapping update to [myes] as the final mapping would have more than 1 type: [user1, user]"
  7. }
  8. ],
  9. "type": "illegal_argument_exception",
  10. "reason": "Rejecting mapping update to [myes] as the final mapping would have more than 1 type: [user1, user]"
  11. },
  12. "status": 400
  13. }

在springboot启动的时候也报对应的错误:

  1. Caused by: java.lang.IllegalArgumentException: Rejecting mapping update to [myes] as the final mapping would have more than 1 type: [topic, user]

然后发现,elasticsearch 6.0.0及之后移除了一个索引允许映射多个类型的操作(Removal of mapping types)。也就是不能用索引跟数据库的database相对比,类型跟表对比了,这样会产生误解。具体原因以后会详细研究。先记录下来。

 453

啊!这个可能是世界上最丑的留言输入框功能~


当然,也是最丑的留言列表

有疑问发邮件到 : suibibk@qq.com 侵权立删
Copyright : 个人随笔   备案号 : 粤ICP备18099399号-2