From 82e61eb651d385fbea9acf42aac4e721e6f9f8cd Mon Sep 17 00:00:00 2001 From: Andreas Haller Date: Wed, 19 Nov 2014 22:34:14 +0100 Subject: [PATCH] Add TODO: Pagination --- app/controllers/search_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index a17a8b9..9401004 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -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