docbrown/lib/data_update_scripts/20200313123108_index_users_to_elasticsearch.rb
Molly Struve a4ce1625e3
Search Users for Chat Channels Frontend (#6626)
* hook up user search for chat channels to Elasticsearch

* Add spaces

* run specs

* add more spaces

* reset travis file

* add another data upadte script to reindex Users
2020-03-13 10:26:32 -04:00

11 lines
262 B
Ruby

module DataUpdateScripts
class IndexUsersToElasticsearch
def run
User.select(:id).find_each do |user|
Search::IndexToElasticsearchWorker.set(queue: :low_priority).perform_async(
"User", user.id
)
end
end
end
end