Elasticsearch 文件系统爬虫 (FS Crawler)
| Elasticsearch | FSCrawler | 发布 | 文档 |
|---|---|---|---|
| 6.x, 7.x | 2.9 | 2022-03-08 | 2.9 |
| 7.x, 8.x, 9.x | 3.0 | 2026-08-26 | 3.0 |
| 8.x, 9.x | 3.1-SNAPSHOT | 3.1-SNAPSHOT |
使用 start-local 启动 Elasticsearch:
# Start Elasticsearch and Kibana
curl -fsSL https://elastic.co/start-local | sh
# Get the generated API key (you will need it for FSCrawler)
source elastic-start-local/.env使用 Docker 运行 FSCrawler:
docker pull dadoonet/fscrawler
docker run -it --rm \
--add-host=host.docker.internal:host-gateway \
-v ~/.fscrawler:/root/.fscrawler \
-v $(pwd)/resumes:/tmp/es:ro \
-e FSCRAWLER_ELASTICSEARCH_URLS=http://host.docker.internal:9200 \
-e FSCRAWLER_ELASTICSEARCH_API_KEY="${ES_LOCAL_API_KEY}" \
-e FS_JAVA_OPTS="-DLOG_LEVEL=debug" \
dadoonet/fscrawler然后 打开 Kibana, 观察您的文档是否已进入 fscrawler 别名:
FROM fscrawler
| STATS numDocs = COUNT(*)或者搜索某些文本:
FROM fscrawler
| WHERE content : "David"或者使用 file.content_type 进行计数:
暂无开放 Issues,或尚未同步最近议题。