From c6a7f286b662c79f2900f3f4d7d523c7ab943989 Mon Sep 17 00:00:00 2001 From: rewerma Date: Thu, 26 Sep 2019 08:56:33 +0800 Subject: [PATCH] Updated Sync ES (markdown) --- Sync-ES.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sync-ES.md b/Sync-ES.md index ada867d..ad68089 100644 --- a/Sync-ES.md +++ b/Sync-ES.md @@ -213,6 +213,16 @@ left join (select user_id, group_concat(label order by id desc separator ';') as objFields: labels: array:; ``` +- 对象字段 +``` +select a.id as _id, a.name, a.role_id, c.labels, a.c_time, a.description from user a +``` +配置中使用: +``` +objFields: + description: object +``` +其中a.description字段内容为json字符串 - 父子文档索引 es/customer.yml