docker部署es安装ik分词器
时间: 2023-09-01 21:09:45 浏览: 146
ES集群添加IK分词器.md
您可以通过以下步骤在Docker中部署Elasticsearch并安装IK分词器:
1. 下载Elasticsearch镜像:使用以下命令从Docker Hub上获取Elasticsearch镜像:
```
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.10.2
```
2. 创建并启动Elasticsearch容器:运行以下命令来创建并启动Elasticsearch容器:
```
docker run -d --name es -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.10.2
```
3. 重启Elasticsearch容器:使用以下命令重启Elasticsearch容器,以使IK分词器生效:
```
docker restart es
```
4. 检查IK分词器是否已安装成功:您可以通过访问http://localhost:9200/_cat/plugins?v来查看已安装的插件列表。如果IK分词器已成功安装,您应该能够在插件列表中看到相关信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [ES基础篇 Docker部署的ES中安装IK分词器](https://blog.csdn.net/u010088278/article/details/131025204)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [如何在Docker环境下配置Es自定义分词器(ik)?](https://blog.csdn.net/Blue92120/article/details/130195635)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文