mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
review changes
This commit is contained in:
parent
eb7616ca0f
commit
3ef0830c5d
6 changed files with 9 additions and 7 deletions
|
@ -81,7 +81,7 @@ impl UpdateHandler {
|
|||
primary_key.as_deref(),
|
||||
),
|
||||
ClearDocuments => index.clear_documents(update_builder),
|
||||
DeleteDocuments { documents } => index.delete_documents(documents.to_vec(), update_builder),
|
||||
DeleteDocuments { ids } => index.delete_documents(ids, update_builder),
|
||||
Settings(settings) => index.update_settings(&settings.clone().check(), update_builder),
|
||||
};
|
||||
|
||||
|
|
|
@ -298,7 +298,7 @@ impl Index {
|
|||
|
||||
pub fn delete_documents(
|
||||
&self,
|
||||
document_ids: Vec<String>,
|
||||
document_ids: &[String],
|
||||
update_builder: UpdateBuilder,
|
||||
) -> anyhow::Result<UpdateResult> {
|
||||
let mut txn = self.write_txn()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue