Skip to content

Conversation

@tharropoulos
Copy link
Contributor

TLDR

Closes #65

Change Summary

This pull request includes changes to the typesense library to enhance document deletion functionality and improve testing coverage. The most important changes include adding parameters for deleting a single document, updating the delete method, and adding new tests for the delete functionality.

Enhancements to document deletion:

Improvements to testing:

  • tests/document_test.py: Added pytest import and new test cases to verify the delete functionality, including handling non-existent documents and the ignore_not_found parameter. [1] [2] [3]

PR Checklist

- add `DeleteSingleDocumentParameters` type definition with `ignore_not_found` flag
- update `Document.delete()` method to accept optional parameters
- add tests for delete with `ignore_not_found` flag
@kishorenc kishorenc merged commit ff8bafe into typesense:master Mar 4, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for ignore_not_found=true parameter in document.delete()

2 participants