stadtratmonitor/app/controllers/search_controller.rb

9 lines
197 B
Ruby
Raw Normal View History

class SearchController < ApplicationController
def index
2014-11-19 21:54:36 +01:00
@result = if params[:q].present?
es = Elasticsearch::Client.new
es.search index: 'loris', q: params[:q]
end
end
end