From 8dfbcfbc7cf3126cdf4c2c7d5de3045289c3a49b Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 3 Mar 2022 10:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/search.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routers/search.go b/routers/search.go index d937c881e..6a85c1c60 100644 --- a/routers/search.go +++ b/routers/search.go @@ -192,9 +192,9 @@ func makeRepoResult(sRes *elastic.SearchResult, Key string, OnlyReturnNum bool) } else { record["description"] = "" } - if Key == "" { - record["hightTopics"] = getLabelValue("topics", recordSource, hit.Highlight) - } + + record["hightTopics"] = getLabelValue("topics", recordSource, hit.Highlight) + log.Info("hight[\"topics\"]=" + getLabelValue("topics", recordSource, hit.Highlight)) record["num_watches"] = recordSource["num_watches"] record["num_stars"] = recordSource["num_stars"]