当 type
声明为 string
时,Elasticsearch 6.0 将显示此错误。
"name" => [
"type" => "string",
"analyzer" => "ik_max_word"
]
最佳答案
Elasticsearch 放弃了 string
类型,现在使用 text
。所以你的代码应该是这样的
"name" => [
"type" => "text",
"analyzer" => "ik_max_word"
]
关于elasticsearch - 没有在字段 [name] 上声明的类型 [string] 的处理程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47452770/