-
Notifications
You must be signed in to change notification settings - Fork 202
feat: adding updated/delete by filter + tests to AzureAISearchDocument Store
#2586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adding updated/delete by filter + tests to AzureAISearchDocument Store
#2586
Conversation
AzureusAISearch Document Store
.../azure_ai_search/src/haystack_integrations/document_stores/azure_ai_search/document_store.py
Outdated
Show resolved
Hide resolved
.../azure_ai_search/src/haystack_integrations/document_stores/azure_ai_search/document_store.py
Outdated
Show resolved
Hide resolved
.../azure_ai_search/src/haystack_integrations/document_stores/azure_ai_search/document_store.py
Outdated
Show resolved
Hide resolved
.../azure_ai_search/src/haystack_integrations/document_stores/azure_ai_search/document_store.py
Outdated
Show resolved
Hide resolved
.../azure_ai_search/src/haystack_integrations/document_stores/azure_ai_search/document_store.py
Outdated
Show resolved
Hide resolved
.../azure_ai_search/src/haystack_integrations/document_stores/azure_ai_search/document_store.py
Outdated
Show resolved
Hide resolved
AzureusAISearch Document StoreAzureAISearchDocument Store
…t_stores/azure_ai_search/document_store.py Co-authored-by: Stefano Fiorucci <[email protected]>
|
@anakin87 - I think is totally fine to remove this patch - the init doesn't allocate any resources or establish any connection. It's just testing that the parameters are held/stored on the object instance. |
|
@davidsbatista sorry I now tried and I agree. Sorry |
anakin87
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove that patch and feel free to merge
Related Issues
update_by_filter()anddelete_by_filter()operations toAzureAISearchDocumentStore#2328Proposed Changes:
delete_by_filter()method to delete documents matching filter criteriaupdate_by_filter()method to update fields of documents matching filter criteria_normalize_metadata_index_fieldsa static method (it doesn't need instance state)@patchdecorator fromtest_initin Azure AI Search tests that caused the test to use a MagicMock instead of a real instanceHow did you test it?
delete_by_filterandupdate_by_filter(5 new test cases)Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:.