There is no handler of type [string] declared in the [name] field

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

 "name" => [ "type" => "string", "analyzer" => "ik_max_word" ] 
+23
elasticsearch elasticsearch-mapping
source share
1 answer

Elasticsearch has dropped the string type and now uses text . So your code should be something like this

 "name" => [ "type" => "text", "analyzer" => "ik_max_word" ] 
+52
source share

All Articles