没有在字段[名称]上声明类型[string]的处理程序 [英] No handler for type [string] declared on field [name]
本文介绍了没有在字段[名称]上声明类型[string]的处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将type
声明为string
时,Elasticsearch 6.0将显示此错误.
When type
is declared as string
, Elasticsearch 6.0 will show this error.
"name" => [
"type" => "string",
"analyzer" => "ik_max_word"
]
推荐答案
Elasticsearch删除了string
类型,现在正在使用text
.所以你的代码应该是这样的
Elasticsearch has dropped the string
type and is now using text
. So your code should be something like this
"name" => [
"type" => "text",
"analyzer" => "ik_max_word"
]
这篇关于没有在字段[名称]上声明类型[string]的处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文