diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/.cvsignore | 2 | ||||
-rw-r--r-- | config/environment.rb | 20 | ||||
-rw-r--r-- | config/solr.yml-example | 13 |
3 files changed, 0 insertions, 35 deletions
diff --git a/config/.cvsignore b/config/.cvsignore index 28a08240d..2539dd3cd 100644 --- a/config/.cvsignore +++ b/config/.cvsignore @@ -1,5 +1,3 @@ general database.yml rails_env.rb -solr.yml -solr.yml.deployed diff --git a/config/environment.rb b/config/environment.rb index 8de70344c..d05981b0d 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -129,26 +129,6 @@ module ActiveRecord end end -# Monkeypatch! Make it so :if really turns off all access to solr on saving. -module ActsAsSolr - module InstanceMethods - # saves to the Solr index - def solr_save - return true unless configuration[:if] - if evaluate_condition(configuration[:if], self) - logger.debug "solr_save: #{self.class.name} : #{record_id(self)}" - solr_add to_solr_doc - solr_commit if configuration[:auto_commit] - true - else - # XXX commented out - so when new requests arrive no connection is - # made to solr, in case it is broken. - # solr_destroy - end - end - end -end - # Monkeypatch! Hack for admin pages, when proxied via https on mySociety servers, they # need a relative URL. module WillPaginate diff --git a/config/solr.yml-example b/config/solr.yml-example deleted file mode 100644 index 00100439e..000000000 --- a/config/solr.yml-example +++ /dev/null @@ -1,13 +0,0 @@ -# Config file for the acts_as_solr plugin. -# -# XXX This is hackily read by vendor/plugins/acts_as_solr/config/environment.rb -# for the rake task to start things with the right port. - -development: - url: http://localhost:8999/solr - -test: - url: http://localhost:8991/solr - -production: - url: http://localhost:8983/solr |