Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当type声明为string时,Elasticsearch 6.0 将显示此错误。
type
string
"name" => [ "type" => "string", "analyzer" => "ik_max_word" ]
Elasticsearch 已删除该string类型,现在使用text. 所以你的代码应该是这样的
text
"name" => [ "type" => "text", "analyzer" => "ik_max_word" ]