Skip to content

Commit

Permalink
Merged in r2-1774-fix-reindex (pull request #5484)
Browse files Browse the repository at this point in the history
R2-1774 Omitting Traces from caching location service on sunspot reindex
  • Loading branch information
pnabutovsky committed Aug 20, 2021
2 parents 13b4cec + e7259c7 commit 0fa341e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/sunspot.rake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace :sunspot do
puts "Reindexing #{model.count} #{model.name} records in batches of #{batch_size}..."

model.all.find_in_batches(batch_size: batch_size) do |records|
records.each { |r| r.location_service = location_service }
records.each { |r| r.location_service = location_service } unless model == Trace
Sunspot.index(records)
index_flags_for_records(model, records, batch_size)
index_nested_reportables_for_records(model, records, batch_size)
Expand Down

0 comments on commit 0fa341e

Please sign in to comment.