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"]