Skip to content
Snippets Groups Projects
Unverified Commit cf289420 authored by Will Deaderick's avatar Will Deaderick Committed by GitHub
Browse files

Implement OpensearchVectorStore document deletion (#11292)

parent 7e959cc8
No related branches found
No related tags found
No related merge requests found
......@@ -350,7 +350,8 @@ class OpensearchVectorClient:
Args:
doc_id (str): document id
"""
self._os_client.delete(index=self._index, id=doc_id)
body = {"query": {"match": {"metadata.ref_doc_id": doc_id}}}
self._os_client.delete_by_query(index=self._index, body=body)
def query(
self,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment