From 1a1dcf115ad3a4f53cbbacaac27e09c9c8d57ba9 Mon Sep 17 00:00:00 2001 From: rewerma Date: Thu, 26 Sep 2019 08:43:55 +0800 Subject: [PATCH] Updated Sync ES (markdown) --- Sync-ES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sync-ES.md b/Sync-ES.md index 3cde403..ada867d 100644 --- a/Sync-ES.md +++ b/Sync-ES.md @@ -26,7 +26,7 @@ canal.conf: outerAdapters: - key: exampleKey - name: es + name: es6 # or es7 hosts: 127.0.0.1:9300 # es 集群地址, 逗号分隔 properties: mode: transport # or rest # 可指定transport模式或者rest模式 @@ -43,7 +43,7 @@ destination: example # cannal的instance或者MQ的topic groupId: # 对应MQ模式下的groupId, 只会同步对应groupId的数据 esMapping: _index: mytest_user # es 的索引名称 - _type: _doc # es 的doc名称 + _type: _doc # es 的type名称, es7下无需配置此项 _id: _id # es 的_id, 如果不配置该项必须配置下面的pk项_id则会由es自动分配 # pk: id # 如果不需要_id, 则需要指定一个属性为主键属性 # sql映射