Skip to content

Commit

Permalink
[Bugfix] fix typo in opensearch db (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
deven298 authored Jan 26, 2024
1 parent e75c051 commit 433f99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embedchain/vectordb/opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get(

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)
Expand Down

0 comments on commit 433f99d

Please sign in to comment.