Authored by Gino Zhang

增加ES操作说明

# 1. DB部分
## 1.1 es_word_def表
搜索库删除废弃的数据
delete from es_word_def where word_type in (3,5,6);
将搜索库的yhb_search.es_word_def表数据拷贝到yhb_operation的schema去
... ... @@ -48,12 +53,33 @@
#################################################
## 2.4 重启Canal
sh /opt/canal.deployer-1.0.20/bin/stop.sh
sh /opt/canal.deployer-1.0.20/bin/startup.sh
sh /opt/canal.deployer-1.0.20/bin/stop.sh
sh /opt/canal.deployer-1.0.20/bin/startup.sh
# 3. ES部分
更新ik的jar包
/opt/elasticsearch-2.3.4/plugins/ik/elasticsearch-analysis-ik-1.9.4.jar
修改es的配置文件的ik_complex配置
vi /opt/elasticsearch-2.3.4/config/elasticsearch.yml
ik_complex:
type: custom
tokenizer: ik_smart
filter:
- lowercase
- ik_dyn_synonym
- my_stop
- lowercase
- unique
重启ES
sh /opt/elasticsearch-2.3.4/bin/service/elasticsearch stop
sh /opt/elasticsearch-2.3.4/bin/service/elasticsearch start
# 4. autoconfig配置部分
## 4.1 consumer增加suggest相关参数
... ... @@ -64,4 +90,4 @@ sh /opt/canal.deployer-1.0.20/bin/startup.sh
# 5. 其他
\ No newline at end of file
# 5. 其他
... ...