diff --git a/meilidb-data/src/database/index/mod.rs b/meilidb-data/src/database/index/mod.rs index 9ee2e6804..2d6490d4c 100644 --- a/meilidb-data/src/database/index/mod.rs +++ b/meilidb-data/src/database/index/mod.rs @@ -316,6 +316,14 @@ impl Index { self.cache.load().schema.clone() } + pub fn synonyms_index(&self) -> SynonymsIndex { + self.synonyms_index.clone() + } + + pub fn synonyms_set(&self) -> Arc { + self.cache.load().synonyms.clone() + } + pub fn custom_settings(&self) -> CustomSettingsIndex { self.custom_settings_index.clone() }