字段[name]上未声明类型[string]的处理程序
当字段[name]上未声明类型[string]的处理程序,
Warning: implode(): Invalid arguments passed in /data/phpspider/zhask/webroot/tpl/detail.html on line 45
,,当类型声明为字符串时,Elasticsearch 6.0将显示此错误 "name" => [ "type" => "string", "analyzer" => "ik_max_word" ] Elasticsearch已删除字符串类型,现在正在使用文本。所以你的代码应该是这样的 "name" => [ "type" => "text", "analyzer" => "ik_max_word" ] 没有字段类型“string”,我想你的意思
类型
声明为字符串
时,Elasticsearch 6.0将显示此错误
"name" => [
"type" => "string",
"analyzer" => "ik_max_word"
]
Elasticsearch已删除
字符串
类型,现在正在使用文本
。所以你的代码应该是这样的
"name" => [
"type" => "text",
"analyzer" => "ik_max_word"
]
没有字段类型“string”,我想你的意思是“text”?我正在将es2迁移到es6,似乎“string”已被删除。谢谢,是的,请查看是否有错误:uuid,而不是将“string”更改为“keyword”。