Commit 939d15351713a9b53379f7eb5c8a6589188e7f97
1 parent
50051994
Exists in
master
and in
29 other branches
Revert "Revert "Fixes for solr""
This reverts commit 4ea10045f11f94f241774158e542cdc3842b02c9.
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
lib/tasks/multitenancy.rake
@@ -25,7 +25,7 @@ namespace :multitenancy do | @@ -25,7 +25,7 @@ namespace :multitenancy do | ||
25 | m.rebuild_index | 25 | m.rebuild_index |
26 | puts "Rebuilt index for #{m}" if Rake.application.options.trace | 26 | puts "Rebuilt index for #{m}" if Rake.application.options.trace |
27 | end | 27 | end |
28 | - m.paginated_each(:per_page => 50) { |i| i.ferret_update } | 28 | + m.paginated_each(:per_page => 50) { |i| i.solr_save } |
29 | puts "Reindexed all instances of #{m}" if Rake.application.options.trace | 29 | puts "Reindexed all instances of #{m}" if Rake.application.options.trace |
30 | end | 30 | end |
31 | end | 31 | end |
vendor/plugins/acts_as_solr_reloaded/lib/acts_as_solr/class_methods.rb
@@ -238,5 +238,7 @@ module ActsAsSolr #:nodoc: | @@ -238,5 +238,7 @@ module ActsAsSolr #:nodoc: | ||
238 | solr_optimize | 238 | solr_optimize |
239 | logger.info items_processed > 0 ? "Index for #{self.name} has been rebuilt" : "Nothing to index for #{self.name}" | 239 | logger.info items_processed > 0 ? "Index for #{self.name} has been rebuilt" : "Nothing to index for #{self.name}" |
240 | end | 240 | end |
241 | + | ||
242 | + alias :rebuild_index :rebuild_solr_index | ||
241 | end | 243 | end |
242 | end | 244 | end |