From 58c20ac003e39029908f5f4a81a1fe5d22efe8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Sun, 3 Dec 2023 08:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=88=B0=E4=B8=BB=E7=B4=A2?= =?UTF-8?q?=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/elasticsearch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/elasticsearch.go b/models/elasticsearch.go index 2f1166b..ad23006 100644 --- a/models/elasticsearch.go +++ b/models/elasticsearch.go @@ -83,7 +83,7 @@ func ElasticsearchSearch(text string) (r *SearchData) { // 执行查询 res, err := es.Search( es.Search.WithContext(context.Background()), - es.Search.WithIndex("my_index"), + es.Search.WithIndex("web_images"), es.Search.WithBody(&buf), es.Search.WithTrackTotalHits(true), es.Search.WithPretty(),