Show 30 results by default

This commit is contained in:
Andreas Haller 2014-11-19 22:33:25 +01:00
parent 3d721d1759
commit c20a77dfa7

View file

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