Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix wiki search bug.

  • Loading branch information...
commit 7cda3664c6d0119b4475b1771f8fdac371b4beee 1 parent aeb547a
@huacnlee huacnlee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/search_controller.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.