Commit 2e5dd1fe authored by Valery Sizov's avatar Valery Sizov

ES: more reliable wiki indexer

parent 2bf8442d
......@@ -2,6 +2,7 @@ Please view this file on the master branch, on stable branches it's out of date.
v 8.5.0 (unreleased)
- Show warning when mirror repository default branch could not be updated because it has diverged from upstream.
- More reliable wiki indexer
v 8.4.2
- Elasticsearch indexer performance improvements
......
......@@ -21,7 +21,19 @@ namespace :gitlab do
desc "Indexing all wikis"
task index_wikis: :environment do
ProjectWiki.import
ProjectWiki.__elasticsearch__.create_index!
Project.where(wiki_enabled: true).find_each do |project|
unless project.wiki.empty?
puts "Indexing wiki of #{project.name_with_namespace}..."
begin
project.wiki.index_blobs
puts "Done!".green
rescue StandardError => e
puts "#{e.message}, trace - #{e.backtrace}"
end
end
end
end
desc "Create indexes in the Elasticsearch from database records"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment