diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-06 09:53:36 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-06 09:53:36 +0000 |
commit | f413c7bfb232db038dcb1265fda1bf5dabb9b4f8 (patch) | |
tree | 8cdf37d53e440dce10a2f4a013d09a3852507b64 /app/controllers/request_controller.rb | |
parent | 3c3156a83c3eb1ce3f1b668a6e52d706b32b8e7b (diff) |
Don't wildcard search public bodies when making a request (it causes performance issues and isn't useful here anyway)
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index dad5e81cd..8672fdf75 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -35,9 +35,8 @@ class RequestController < ApplicationController # do nothing - as "authenticated?" has done the redirect to signin page for us return end - if !params[:query].nil? - query = params[:query] + '*' + query = params[:query] query = query.split(' ').join(' OR ') # XXX: HACK for OR instead of default AND! @xapian_requests = perform_search([PublicBody], query, 'relevant', nil, 5) end |