chore: export a getter for synonyms

This commit is contained in:
qdequele 2019-09-18 18:22:27 +02:00
parent e3c413759f
commit 522013425b
No known key found for this signature in database
GPG Key ID: B3F0A000EBF11745

View File

@ -316,6 +316,14 @@ impl Index {
self.cache.load().schema.clone() self.cache.load().schema.clone()
} }
pub fn synonyms_index(&self) -> SynonymsIndex {
self.synonyms_index.clone()
}
pub fn synonyms_set(&self) -> Arc<fst::Set> {
self.cache.load().synonyms.clone()
}
pub fn custom_settings(&self) -> CustomSettingsIndex { pub fn custom_settings(&self) -> CustomSettingsIndex {
self.custom_settings_index.clone() self.custom_settings_index.clone()
} }