From 5a980feffda3b378867b534659d89be8edcb9cf4 Mon Sep 17 00:00:00 2001 From: francis Date: Thu, 24 Apr 2008 23:52:59 +0000 Subject: Change from acts_as_solr to acts_as_xapian --- app/controllers/general_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/general_controller.rb') 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, -- cgit v1.2.3