logfix
All checks were successful
Deploy on push / deploy (push) Successful in 29s

This commit is contained in:
Untone 2024-05-24 13:25:05 +03:00
parent c444895945
commit c4817c1e52

View File

@ -181,7 +181,7 @@ class SearchService:
index=self.index_name, body=search_body, size=limit, from_=offset index=self.index_name, body=search_body, size=limit, from_=offset
) )
logger.debug(f"Ищsearch_response: {search_response}") logger.debug(f"search_response: {search_response}")
hits = search_response["hits"]["hits"] hits = search_response["hits"]["hits"]
results = [{**hit["_source"], "score": hit["_score"]} for hit in hits] results = [{**hit["_source"], "score": hit["_score"]} for hit in hits]