From 522013425bb08898a636d669f9472b01dd546240 Mon Sep 17 00:00:00 2001 From: qdequele Date: Wed, 18 Sep 2019 18:22:27 +0200 Subject: [PATCH] chore: export a getter for synonyms --- meilidb-data/src/database/index/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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() }