Permalink
Browse files

Fix wiki search bug.

  • Loading branch information...
1 parent aeb547a commit 7cda3664c6d0119b4475b1771f8fdac371b4beee @huacnlee huacnlee committed Jan 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/search_controller.rb
@@ -16,7 +16,7 @@ def index
def wiki
@keywords = Segment.split(params[:q])
search_text = @keywords.join(" ")
- @search = Page.search do
+ @search = Sunspot.search(Page) do
keywords search_text, :highlight => true
paginate :page => params[:page], :per_page => 20
end

0 comments on commit 7cda366

Please sign in to comment.