|
|
@@ -187,8 +187,8 @@ func makeRepoResult(sRes *elastic.SearchResult, Key string, OnlyReturnNum bool) |
|
|
record["num_stars"] = recordSource["num_stars"] |
|
|
record["num_stars"] = recordSource["num_stars"] |
|
|
record["num_forks"] = recordSource["num_forks"] |
|
|
record["num_forks"] = recordSource["num_forks"] |
|
|
|
|
|
|
|
|
if record["topics"] != nil { |
|
|
|
|
|
topicsStr := record["topics"].(string) |
|
|
|
|
|
|
|
|
if recordSource["topics"] != nil { |
|
|
|
|
|
topicsStr := recordSource["topics"].(string) |
|
|
log.Info("topicsStr=" + topicsStr) |
|
|
log.Info("topicsStr=" + topicsStr) |
|
|
if topicsStr != "null" { |
|
|
if topicsStr != "null" { |
|
|
topicsStr = strings.Replace(topicsStr, "\"", "", -1) |
|
|
topicsStr = strings.Replace(topicsStr, "\"", "", -1) |
|
|
|