Get objects to reindex from Models.searchable.
This commit is contained in:
parent
ecb0ace02d
commit
eb84b39c32
1 changed files with 4 additions and 3 deletions
|
@ -42,9 +42,10 @@ namespace :searchindex do
|
|||
task :reload, [:opts] => :environment do |_t, _args|
|
||||
|
||||
puts 'reload data...'
|
||||
User.search_index_reload
|
||||
Organization.search_index_reload
|
||||
Ticket.search_index_reload
|
||||
Models.searchable.each {|model_class|
|
||||
puts " reload #{model_class}"
|
||||
model_class.search_index_reload
|
||||
}
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue