diff --git a/meilidb-core/src/store/mod.rs b/meilidb-core/src/store/mod.rs index 66cbdc695..15b1083bb 100644 --- a/meilidb-core/src/store/mod.rs +++ b/meilidb-core/src/store/mod.rs @@ -117,6 +117,22 @@ impl Index { ) } + pub fn synonyms_addition(&self) -> update::SynonymsAddition { + update::SynonymsAddition::new( + self.updates, + self.updates_results, + self.updates_notifier.clone(), + ) + } + + pub fn synonyms_deletion(&self) -> update::SynonymsDeletion { + update::SynonymsDeletion::new( + self.updates, + self.updates_results, + self.updates_notifier.clone(), + ) + } + pub fn query_builder(&self) -> QueryBuilder { QueryBuilder::new(self.main, self.postings_lists, self.synonyms) }