Query ES, show results

This commit is contained in:
Andreas Haller 2014-11-19 21:54:36 +01:00
parent 7cd9f207f5
commit 2abba45f4c
8 changed files with 44 additions and 12 deletions

View file

@ -1,4 +1,8 @@
class SearchController < ApplicationController
def index
@result = if params[:q].present?
es = Elasticsearch::Client.new
es.search index: 'loris', q: params[:q]
end
end
end