全文检索
3xxx opened this issue · comments
1.You can pull down the version you would like using:
docker pull apache/tika:
Then to run the container, execute the following command:
docker run -d -p 9998:9998 apache/tika:
2.拉取和运行es
docker pull elasticsearch:7.14.2
启动
docker run -it -e "discovery.type=single-node" --name="es714" -p 9200:9200 -p 9300:9300 elasticsearch
或
docker run -p 9200:9200 -p 9300:9300 --name es714 -e "discovery.type=single-node" -e "TAKE_FILE_OWNERSHIP=true" -v /es/logs:/usr/share/elasticsearch/logs -v /es/data:/usr/share/elasticsearch/data -d 2ab
3.修改配置
http.cors.enabled: true
http.cors.allow-origin: "*"
4.ik中文分词插件安装到es的plugins
效果: