From a2fbf2ea21139adc5a061a9856f612a9b9401fb7 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Wed, 9 Oct 2024 13:53:34 +0200 Subject: [PATCH] set updated at at the end of the indexing --- milli/src/update/new/indexer/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/milli/src/update/new/indexer/mod.rs b/milli/src/update/new/indexer/mod.rs index e49f0ab9c..c634e22b6 100644 --- a/milli/src/update/new/indexer/mod.rs +++ b/milli/src/update/new/indexer/mod.rs @@ -12,6 +12,7 @@ pub use document_operation::DocumentOperation; use heed::{RoTxn, RwTxn}; pub use partial_dump::PartialDump; use rayon::ThreadPool; +use time::OffsetDateTime; pub use update_by_function::UpdateByFunction; use super::channel::*; @@ -285,6 +286,8 @@ where inner_index_settings.recompute_facets(wtxn, index)?; inner_index_settings.recompute_searchables(wtxn, index)?; + index.set_updated_at(wtxn, &OffsetDateTime::now_utc())?; + Ok(()) }