From a62653b57805160e81cb3cfc268dfa51bc846f59 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 30 Jan 2014 01:06:04 +0100 Subject: [PATCH] Reload newer objects first into search index. --- app/models/application_model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/application_model.rb b/app/models/application_model.rb index 7be8540c6..80d08e0b8 100644 --- a/app/models/application_model.rb +++ b/app/models/application_model.rb @@ -515,7 +515,7 @@ reload search index with full data def self.search_index_reload return if !@search_index_support_config - self.all.each { |item| + self.all.order('created_at DESC').each { |item| item.search_index_update_backend } end