4853: Fix rhai deletion r=irevoire a=dureuill

# Pull Request

## Related issue
Fixes #4849 

## What does this PR do?
- insert inside of the bitmap instead of pushing into it.


Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
meili-bors[bot] 2024-08-01 16:34:31 +00:00 committed by GitHub
commit c817718e07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,7 +290,7 @@ where
match result? { match result? {
DocumentEdition::Deleted(docid) => { DocumentEdition::Deleted(docid) => {
documents_to_remove.push(docid); documents_to_remove.insert(docid);
} }
DocumentEdition::Edited(new_document) => { DocumentEdition::Edited(new_document) => {
documents_batch_builder.append_json_object(&new_document)?; documents_batch_builder.append_json_object(&new_document)?;