小编典典

没有在字段[名称]上声明类型[string]的处理程序

elasticsearch

type声明string为时,Elasticsearch 6.0将显示此错误。

"name" => [
  "type" => "string",
  "analyzer" => "ik_max_word"
]

阅读 289

收藏
2020-06-22

共1个答案

小编典典

Elasticsearch删除了该string类型,现在正在使用text。所以你的代码应该是这样的

"name" => [
  "type" => "text",
  "analyzer" => "ik_max_word"
]
2020-06-22