跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • ElasticSearch7.9.1, ik 分词无法插入数据
未分類
6 9 月 2020

ElasticSearch7.9.1, ik 分词无法插入数据

ElasticSearch7.9.1, ik 分词无法插入数据

資深大佬 : xinyana 4

elasticsearch7.9.1,ik 分词也是 7.9.1

前两步没有问题,但是插入数据报错 报错:Mapper 冲突

求解,非常感谢!

#1.创建 index PUT /news  #2.设置分词 PUT /news/_mapping {   "properties": {     "content": {       "type": "text",       "analyzer": "ik_max_word",       "search_analyzer": "ik_max_word"     }   } }  #3.插入数据 PUT gd/gd/1iNC {   "title": "这里是标题",   "content": "这里是内容" }  DELETE /news 

第三步插入数据报错:

{   "error" : {     "root_cause" : [       {         "type" : "illegal_argument_exception",         "reason" : "Mapper for [content] conflicts with existing mapping:n[mapper [content] has different [analyzer]]"       }     ],     "type" : "illegal_argument_exception",     "reason" : "Mapper for [content] conflicts with existing mapping:n[mapper [content] has different [analyzer]]"   },   "status" : 400 } 

大佬有話說 (0)

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具