Introduce partial updates to the update system

This commit is contained in:
Clément Renault 2019-11-05 15:23:41 +01:00
parent 68c0a36b00
commit 36b74f0efe
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
4 changed files with 292 additions and 19 deletions

View file

@ -156,6 +156,14 @@ impl Index {
)
}
pub fn documents_partial_addition<D>(&self) -> update::DocumentsAddition<D> {
update::DocumentsAddition::new_partial(
self.updates,
self.updates_results,
self.updates_notifier.clone(),
)
}
pub fn documents_deletion(&self) -> update::DocumentsDeletion {
update::DocumentsDeletion::new(
self.updates,