Expose the synonyms operation updates on the Index

This commit is contained in:
Clément Renault 2019-10-08 17:18:22 +02:00
parent ba32ce21d0
commit 6ee0d72c7b
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -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 { pub fn query_builder(&self) -> QueryBuilder {
QueryBuilder::new(self.main, self.postings_lists, self.synonyms) QueryBuilder::new(self.main, self.postings_lists, self.synonyms)
} }