document search

This commit is contained in:
Andreas Stephanides
2015-06-11 11:36:36 +02:00
parent 34659014df
commit 090e2ad72a
5 changed files with 17 additions and 6 deletions

View File

@@ -156,7 +156,8 @@ class DocumentsController < ApplicationController
unless params['query'].nil? || params['query'].empty?
@results = Document.search do
fulltext params['query'] do
highlight :name, :text
fields :name, :text, :meeting
highlight :text
end
end
@res=[]