diff --git a/util/search/search.go b/util/search/search.go index 12caa2ec..13a8a287 100644 --- a/util/search/search.go +++ b/util/search/search.go @@ -83,7 +83,7 @@ func SearchByQuery(r *http.Request, pagenum int) (SearchParam, []model.Torrents, // punctuation characters. continue } - conditions = append(conditions, "torrent_name %> ?") + conditions = append(conditions, "torrent_name LIKE % ? %") parameters.Params = append(parameters.Params, searchQuerySplit[i]) }