update index updated at on index writes

This commit is contained in:
mpostma
2021-03-11 18:42:21 +01:00
parent 80d0f9c49d
commit 615fe095e1
7 changed files with 14 additions and 2 deletions

View File

@ -2,6 +2,7 @@ use std::cmp;
use std::fs::File;
use std::num::NonZeroUsize;
use chrono::Utc;
use grenad::{CompressionType, Reader, Writer, FileFuse};
use heed::types::{ByteSlice, DecodeIgnore};
use heed::{BytesEncode, Error};
@ -57,6 +58,7 @@ impl<'t, 'u, 'i> Facets<'t, 'u, 'i> {
}
pub fn execute(self) -> anyhow::Result<()> {
self.index.set_updated_at(self.wtxn, &Utc::now())?;
// We get the faceted fields to be able to create the facet levels.
let faceted_fields = self.index.faceted_fields_ids(self.wtxn)?;