From 44239d7e3e2647e53047173a5cf7a0d423356a91 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 18 Dec 2024 10:28:13 +0800 Subject: [PATCH 1/3] update EggFriendCircleLikeEsMapping mapping --- md/es.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md/es.go b/md/es.go index 00cfd7c..6177b90 100644 --- a/md/es.go +++ b/md/es.go @@ -309,7 +309,7 @@ const EggFriendCircleLikeEsMapping = ` "number_of_replicas" : 1 }, "aliases": { - "egg_friend_circle": {} + "egg_friend_circle_like": {} }, "mappings":{ "properties":{ From 46ebf4dca6fb2a29fcc5d88aef08ebf124e7ee16 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 18 Dec 2024 16:13:32 +0800 Subject: [PATCH 2/3] update es struct --- md/es.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/md/es.go b/md/es.go index 6177b90..8e9520d 100644 --- a/md/es.go +++ b/md/es.go @@ -202,10 +202,10 @@ const EggFriendCircleCommentEsMapping = ` "type": "integer" }, "circle_id":{ - "type": "integer" + "type": "keyword" }, "comment_id":{ - "type": "integer" + "type": "keyword" }, "reply_comment_id":{ "type": "integer" @@ -317,7 +317,7 @@ const EggFriendCircleLikeEsMapping = ` "type": "integer" }, "circle_id":{ - "type": "integer" + "type": "keyword" }, "created_at":{ "type": "date", From 34181bb6bcbc8b9eb2b37ae84b1a087678610fe3 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 18 Dec 2024 16:34:35 +0800 Subject: [PATCH 3/3] update comment struct --- md/es.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md/es.go b/md/es.go index 8e9520d..cc24692 100644 --- a/md/es.go +++ b/md/es.go @@ -208,7 +208,7 @@ const EggFriendCircleCommentEsMapping = ` "type": "keyword" }, "reply_comment_id":{ - "type": "integer" + "type": "keyword" }, "content":{ "type": "keyword"