From 1bbcdd34f1c9fdf11a8f44f191c69d2ec07d1668 Mon Sep 17 00:00:00 2001 From: Rorical <46294886+Rorical@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:06:59 +0000 Subject: [PATCH] Update elasticsearch.go --- common/database/drivers/elasticsearch.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/database/drivers/elasticsearch.go b/common/database/drivers/elasticsearch.go index aee2548..9e7ce32 100644 --- a/common/database/drivers/elasticsearch.go +++ b/common/database/drivers/elasticsearch.go @@ -52,6 +52,7 @@ func (es *ElasticSearch) InsertDocument(ctx context.Context, index string, id st Index(index). Id(id). BodyJson(object). + OpType("index"). Do(ctx) if err != nil { return err