File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ elasticsearch hard memlock unlimited
137
137
- Bigdesk:`/usr/program/elk/elasticsearch-2.4.1/bin/plugin install hlstudio/bigdesk`
138
138
- 安装完的访问地址:`http://192.168.1.127:9200/_plugin/bigdesk`
139
139
- 卸载:`/usr/share/elasticsearch/bin/elasticsearch-plugin remove 插件名称`
140
- - IK 分词插件的安装(** 重点:所有节点都需要安装此插件* )
140
+ - IK 分词插件的安装(** 重点:所有节点都需要安装此插件** )
141
141
- IK 分词官网:<https://github.com/medcl/elasticsearch-analysis-ik>
142
142
- 官网首页已经有一个表格说明 ES 版本和 IK 插件的版本对应,我们可以看到:ES 2.4.1 对应 IK 分词 1.10.1,下载地址:<https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v1.10.1>
143
143
- 进入 ES 插件目录:`cd /usr/program/elk/elasticsearch-2.4.1/plugins`
@@ -266,6 +266,15 @@ index.analysis.analyzer.default.type: "ik"
266
266
]
267
267
```
268
268
269
+ - Elasticsearch 5.x 版本之后,就不需要再修改这个配置文件了 ` /usr/program/elk/elasticsearch-2.4.1/config/elasticsearch.yml ` ,直接解压 zip 后,直接可以启动,然后再开一个终端,输入下面命令:
270
+
271
+ ``` shell
272
+ curl -XPUT ' http://localhost:9200/_all/_settings?preserve_existing=true' -d ' {
273
+ "index.analysis.analyzer.default.tokenizer" : "ik_max_word",
274
+ "index.analysis.analyzer.default.type" : "ik"
275
+ }'
276
+ ```
277
+
269
278
### 构建 elasticsearch 集群
270
279
271
280
- 另外一台机子也同样这样安装,但是有几个地方有差别:
You can’t perform that action at this time.
0 commit comments