mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +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
|
def index
|
||||||
@result = if params[:q].present?
|
@result = if params[:q].present?
|
||||||
es = Elasticsearch::Client.new
|
es = Elasticsearch::Client.new
|
||||||
|
# TODO: Add pagination
|
||||||
es.search index: 'loris', q: params[:q], size: 30
|
es.search index: 'loris', q: params[:q], size: 30
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue