Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed Apr 8, 2021
1 parent 598c881 commit b2a6275
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tasks/elasticsearch.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ namespace :elasticsearch do
desc "Zero downtime re-indexing
$ RAILS_ENV=development bundle exec rake environment elasticsearch:reindex CLASS='Person' ALIAS='people'
"
# Alt use: Person.all.each { |person| person.touch }
# Alt use: curl -XDELETE 'http://localhost:9200/people_development?pretty'
# rails console: Person.all.each { |person| person.touch }
task reindex: :environment do |task|
if ENV['CLASS'].blank? || ENV['ALIAS'].blank?
puts 'USAGE:'
Expand Down

0 comments on commit b2a6275

Please sign in to comment.