llama-index-vector-stores-opensearch 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of llama-index-vector-stores-opensearch might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-vector-stores-opensearch
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: llama-index vector_stores opensearch integration
5
5
  License: MIT
6
6
  Author: Your Name
@@ -466,7 +466,9 @@ class OpensearchVectorClient:
466
466
  search_query = {
467
467
  "query": {"term": {"metadata.doc_id.keyword": {"value": doc_id}}}
468
468
  }
469
- await self._os_client.delete_by_query(index=self._index, body=search_query)
469
+ await self._os_client.delete_by_query(
470
+ index=self._index, body=search_query, refresh=True
471
+ )
470
472
 
471
473
  async def delete_nodes(
472
474
  self,
@@ -490,12 +492,16 @@ class OpensearchVectorClient:
490
492
  if filters:
491
493
  query["query"]["bool"]["filter"].extend(self._parse_filters(filters))
492
494
 
493
- await self._os_client.delete_by_query(index=self._index, body=query)
495
+ await self._os_client.delete_by_query(
496
+ index=self._index, body=query, refresh=True
497
+ )
494
498
 
495
499
  async def clear(self) -> None:
496
500
  """Clears index."""
497
501
  query = {"query": {"bool": {"filter": []}}}
498
- await self._os_client.delete_by_query(index=self._index, body=query)
502
+ await self._os_client.delete_by_query(
503
+ index=self._index, body=query, refresh=True
504
+ )
499
505
 
500
506
  async def aquery(
501
507
  self,
@@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
27
27
  license = "MIT"
28
28
  name = "llama-index-vector-stores-opensearch"
29
29
  readme = "README.md"
30
- version = "0.2.0"
30
+ version = "0.2.1"
31
31
 
32
32
  [tool.poetry.dependencies]
33
33
  python = ">=3.8.1,<4.0"