mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-23 08:03:14 +01:00
9 lines
236 B
Ruby
9 lines
236 B
Ruby
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
|
|
end
|