Fixes #3466: elasticsearch index rebuild will log warnings to log/production.log

This commit is contained in:
Bola Ahmed Buari 2021-03-24 10:32:21 +01:00 committed by Martin Edenhofer
parent 0b09063197
commit 92eea19f8a

View file

@ -18,7 +18,7 @@ module Ticket::SearchIndex
# collect article data
attributes['article'] = []
Ticket::Article.where(ticket_id: id).order(:id).limit(1000).find_each(batch_size: 50).each do |article|
Ticket::Article.where(ticket_id: id).limit(1000).find_each(batch_size: 50).each do |article|
# lookup attributes of ref. objects (normally name and note)
article_attributes = article.search_index_attribute_lookup(include_references: false)