mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Clear DB on clear documents
This commit is contained in:
parent
41620d5325
commit
22d363c05a
1 changed files with 1 additions and 5 deletions
|
@ -64,11 +64,7 @@ impl<'t, 'i> ClearDocuments<'t, 'i> {
|
||||||
self.index.delete_geo_faceted_documents_ids(self.wtxn)?;
|
self.index.delete_geo_faceted_documents_ids(self.wtxn)?;
|
||||||
|
|
||||||
// Remove all user-provided bits from the configs
|
// Remove all user-provided bits from the configs
|
||||||
let mut configs = self.index.embedding_configs(self.wtxn)?;
|
self.index.embedding_configs().clear_embedder_info_docids(self.wtxn)?;
|
||||||
for config in configs.iter_mut() {
|
|
||||||
config.user_provided.clear();
|
|
||||||
}
|
|
||||||
self.index.put_embedding_configs(self.wtxn, configs)?;
|
|
||||||
|
|
||||||
// Clear the other databases.
|
// Clear the other databases.
|
||||||
external_documents_ids.clear(self.wtxn)?;
|
external_documents_ids.clear(self.wtxn)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue