implement delete single document

This commit is contained in:
mpostma 2021-02-13 10:44:20 +01:00
parent c317af58bc
commit 28b9c158b1
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
4 changed files with 22 additions and 15 deletions

View file

@ -133,7 +133,7 @@ pub trait IndexController {
/// Clear all documents in the given index.
fn clear_documents(&self, index: impl AsRef<str>) -> anyhow::Result<UpdateStatus>;
/// Clear all documents in the given index.
/// Delete all documents in `document_ids`.
fn delete_documents(&self, index: impl AsRef<str>, document_ids: Vec<String>) -> anyhow::Result<UpdateStatus>;
/// Updates an index settings. If the index does not exist, it will be created when the update