Add TODO: Pagination

This commit is contained in:
Andreas Haller 2014-11-19 22:34:14 +01:00
parent c20a77dfa7
commit 82e61eb651

View file

@ -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