mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Show 30 results by default
This commit is contained in:
parent
3d721d1759
commit
c20a77dfa7
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class SearchController < ApplicationController
|
|||
def index
|
||||
@result = if params[:q].present?
|
||||
es = Elasticsearch::Client.new
|
||||
es.search index: 'loris', q: params[:q]
|
||||
es.search index: 'loris', q: params[:q], size: 30
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue