|
|
|
@@ -338,7 +338,7 @@ func SearchRepositoryCondition(opts *SearchRepoOptions) builder.Cond { |
|
|
|
if !opts.TopicOnly { |
|
|
|
var likes = builder.NewCond() |
|
|
|
for _, v := range strings.Split(opts.Keyword, ",") { |
|
|
|
likes = likes.Or(builder.Like{"lower_name", strings.ToLower(v)}) |
|
|
|
likes = likes.Or(builder.Like{"lower_alias", strings.ToLower(v)}) |
|
|
|
likes = likes.Or(builder.Like{"alias", v}) |
|
|
|
if opts.IncludeDescription { |
|
|
|
likes = likes.Or(builder.Like{"LOWER(description)", strings.ToLower(v)}) |
|
|
|
|