From 924f96f39248fe65ca1b4e27a8dd496574935b8c Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Tue, 9 May 2017 00:13:53 +1000 Subject: [PATCH] Possibly fix search --- util/search/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) }