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