From 92eea19f8ae1c574ed0f13d1fcef8f5541164f01 Mon Sep 17 00:00:00 2001 From: Bola Ahmed Buari Date: Wed, 24 Mar 2021 10:32:21 +0100 Subject: [PATCH] Fixes #3466: elasticsearch index rebuild will log warnings to log/production.log --- app/models/ticket/search_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ticket/search_index.rb b/app/models/ticket/search_index.rb index 6aad0166a..c33a91805 100644 --- a/app/models/ticket/search_index.rb +++ b/app/models/ticket/search_index.rb @@ -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)