diff options
author | francis <francis> | 2008-04-24 23:52:59 +0000 |
---|---|---|
committer | francis <francis> | 2008-04-24 23:52:59 +0000 |
commit | 5a980feffda3b378867b534659d89be8edcb9cf4 (patch) | |
tree | 57996a67948afcce84d4cd63a85bf9bd7b8040e7 /app/controllers/general_controller.rb | |
parent | 1dc7f0e3ffd4ddc61759e033437569093672340e (diff) |
Change from acts_as_solr to acts_as_xapian
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 7dbfa6b53..9e2dccc9a 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -5,7 +5,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: general_controller.rb,v 1.18 2008-04-15 23:53:10 francis Exp $ +# $Id: general_controller.rb,v 1.19 2008-04-24 23:52:59 francis Exp $ class GeneralController < ApplicationController @@ -70,7 +70,7 @@ class GeneralController < ApplicationController # Used in front page search for public body def public_body_query(query) - # @public_bodies = PublicBody.find_by_solr(query).results + # XXX try using search now we have spell correction? criteria = '%' + query + '%' @public_bodies = PublicBody.find(:all, |