Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 4 years ago
parent
commit
8dfbcfbc7c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      routers/search.go

+ 3
- 3
routers/search.go View File

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


Loading…
Cancel
Save