meilisearch / milli

Search engine library for Meilisearch ⚡️
MIT License
464 stars 81 forks source link

Make soft deletion optional in document addition and deletion + add lots of tests #720

Closed loiclec closed 1 year ago

loiclec commented 1 year ago

Pull Request

What does this PR do?

When debugging recent issues, I created a few unit tests in the hopes reproducing the bugs I was looking for. In the end, I didn't find any, but I thought it would still be good to keep those tests.

More importantly, I added a field to the DeleteDocuments and IndexDocuments builders, called disable_soft_deletion. If set to true, the indexing/deletion will never add documents to the soft_deleted_documents_ids and instead perform a real deletion of the documents from the databases.

For the new tests, I have:

bors[bot] commented 1 year ago

Build succeeded: