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

Vid*_*eni 101 elasticsearch elasticsearch-mapping elasticsearch-6

当type声明为string,Elasticsearch 6.0将显示此错误.

"name" => [
  "type" => "string",
  "analyzer" => "ik_max_word"
]
Run Code Online (Sandbox Code Playgroud)

Ary*_*tey 201

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

"name" => [
  "type" => "text",
  "analyzer" => "ik_max_word"
]
Run Code Online (Sandbox Code Playgroud)