{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"analyzer [ik_max_word] not found for field [campaignTarget]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: analyzer [ik_max_word] not found for field [campaignTarget]","caused_by":{"type":"mapper_parsing_exception","reason":"analyzer [ik_max_word] not found for field [campaignTarget]"}},"status":400}[
这是因为缺少 es 插件 – ik 分词器
注意使用的用户,如果和 es 启动的用户不一致,需要修改权限,否则 es 会启动失败
wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.7.0/elasticsearch-analysis-ik-7.7.0.zip mkdir elasticsearch-7.7.0/plugins/ik unzip elasticsearch-analysis-ik-7.7.0.zip -d elasticsearch-7.7.0/plugins/ik/