diff --git a/milli/src/update/settings.rs b/milli/src/update/settings.rs index 8220ed3ab..586198c52 100644 --- a/milli/src/update/settings.rs +++ b/milli/src/update/settings.rs @@ -373,13 +373,11 @@ impl<'a, 't, 'u, 'i> Settings<'a, 't, 'u, 'i> { &new_fields_ids_map, )?; self.index.put_fields_ids_map(self.wtxn, &new_fields_ids_map)?; + Ok(true) } - Setting::Reset => { - self.index.delete_all_searchable_fields(self.wtxn)?; - } + Setting::Reset => Ok(self.index.delete_all_searchable_fields(self.wtxn)?), Setting::NotSet => return Ok(false), } - Ok(true) } fn update_stop_words(&mut self) -> Result {