Skip to content

Commit

Permalink
fix query search total
Browse files Browse the repository at this point in the history
  • Loading branch information
rasoro committed Oct 13, 2023
1 parent 9c444e2 commit 95642b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/elasticsearch_vector_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def query_search(self, search_filter: dict) -> list[dict]:

source = ["metadata"]
response = self.vectorstore.client.search(
index=self.vectorstore.index_name, query=query_script, source=source, size=1
index=self.vectorstore.index_name, query=query_script, source=source
)
hits = [hit for hit in response["hits"]["hits"]]
return hits
Expand Down

0 comments on commit 95642b5

Please sign in to comment.