[Bugfix] fix typo in opensearch db (#1218)

This commit is contained in:
Deven Patel
2024-01-26 10:08:47 +05:30
committed by GitHub
parent e75c05112e
commit 433f99dd78

View File

@@ -98,7 +98,7 @@ class OpenSearchDB(BaseVectorDB):
if where:
for key, value in where.items():
query["bool"]["must"].append({"term": {f"metadata.{key}.keyword": value}})
query["query"]["bool"]["must"].append({"term": {f"metadata.{key}.keyword": value}})
# OpenSearch syntax is different from Elasticsearch
response = self.client.search(index=self._get_index(), body=query, _source=True, size=limit)