diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-12 08:56:12 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-12 08:56:12 +0000 |
commit | 99121913fa5525c6b6cec8fd6062c8a6783379bc (patch) | |
tree | 500b7f50745621b3f569d2925556fddb1af600fb /app/controllers/request_controller.rb | |
parent | be9aa2c2d19199084e12d6318feeb48db2287331 (diff) |
Further fix for issue #328.
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 65ce9c88a..99aa3c7ea 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -37,8 +37,7 @@ class RequestController < ApplicationController end if !params[:query].nil? 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) + @xapian_requests = perform_search_typeahead(query, PublicBody) end medium_cache end |