Reload newer objects first into search index.
This commit is contained in:
parent
52f60e81a9
commit
a62653b578
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ reload search index with full data
|
||||||
|
|
||||||
def self.search_index_reload
|
def self.search_index_reload
|
||||||
return if !@search_index_support_config
|
return if !@search_index_support_config
|
||||||
self.all.each { |item|
|
self.all.order('created_at DESC').each { |item|
|
||||||
item.search_index_update_backend
|
item.search_index_update_backend
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue