No handler for type [string] declared on field [name]

元气小坏坏 提交于 2019-12-03 06:26:01

问题


When type is declared as string, Elasticsearch 6.0 will show this error.

"name" => [
  "type" => "string",
  "analyzer" => "ik_max_word"
]

回答1:


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"
]


来源:https://stackoverflow.com/questions/47452770/no-handler-for-type-string-declared-on-field-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!