报错信息
{"error":{"root_cause":[{"type":"parse_exception","reason":"No processor type exists with name [attachment]","processor_type":"attachment"}],"type":"parse_exception","reason":"No processor type exists with name [attachment]","processor_type":"attachment"},"status":400}
ERROR 2022/07/27 15:48:49 Unable to setup file indexing: elastic: Error 400 (Bad Request): No processor type exists with name [attachment] [type=parse_exception]
解决方法
如果es是安装在主机上的,执行sudo bin/elasticsearch-plugin install ingest-attachment
如果es是安装在docker容器中,那么需要先进入容器再安装ingest-attachment
docker exec -it 容器id /bin/bash
cd bin
elasticsearch-plugin install ingest-attachment