用es时异常:Caused by: org.springframework.data.elasticsearch.RestStatusException: Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [_doc]: analyzer [ik_max_word] has not been configured in mappings]; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [_doc]: analyzer [ik_max_word] has not been configured in mappings]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=analyzer [ik_max_word] has not been configured in mappings]];
可能解决方法:项目用到了ik分词器,但es没安装ik分词器,给es装个对应的ik分词器再重启试试