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

Implement opensearch doc deletion (#11959)

parent 02b12c34
No related branches found
No related tags found
No related merge requests found
......@@ -365,7 +365,10 @@ class OpensearchVectorClient:
Args:
doc_id (str): document id
"""
await self._os_client.delete(index=self._index, id=doc_id)
search_query = {
"query": {"term": {"metadata.doc_id.keyword": {"value": doc_id}}}
}
await self._os_client.delete_by_query(index=self._index, body=search_query)
async def aquery(
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