diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-11-24 13:23:14 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-11-24 17:57:17 +0300 |
commit | 8041a87288906e4b10b86a9a2ab9039036243a5d (patch) | |
tree | ec018c0168531b233160cd67a2d46217272a936b /lib/gitlab/search_results.rb | |
parent | 3dd5bedb54ce1bb150ab5304463c0a63d6e10ec9 (diff) |
Drastically improve project search performance by no longer searching namespace name
Diffstat (limited to 'lib/gitlab/search_results.rb')
-rw-r--r-- | lib/gitlab/search_results.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb index efe8095beea..fef9d3e31d4 100644 --- a/lib/gitlab/search_results.rb +++ b/lib/gitlab/search_results.rb @@ -30,7 +30,7 @@ module Gitlab def initialize(current_user, limit_projects, query) @current_user = current_user @limit_projects = limit_projects || Project.all - @query = Shellwords.shellescape(query) if query.present? + @query = query end def objects(scope, page = nil) |