diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-12-03 09:44:12 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:43 +0000 |
commit | c9f34235a0c249b8c99f895c0ffc50ccbfe20f99 (patch) | |
tree | d5e9357a02fe50f15c6e0b52f87d1e5c81edf8d9 /app/controllers/application_controller.rb | |
parent | 90fd2c06e48c17909b9a7d2aae6d01c41047b4de (diff) |
Raise limit on results to 1000.
Seems like you have to specify a limit with xapian. We'll probably want
to document the limit somewhere on this page.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 161a82b26..ff21cb114 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -369,9 +369,9 @@ class ApplicationController < ActionController::Base return page end - def perform_search_typeahead(query, model) + def perform_search_typeahead(query, model, per_page=25) @page = get_search_page_from_params - @per_page = 10 + @per_page = per_page query_words = query.split(/ +(?![-+]+)/) if query_words.last.nil? || query_words.last.strip.length < 3 xapian_requests = nil |