log-response
All checks were successful
Deploy on push / deploy (push) Successful in 1m50s

This commit is contained in:
Untone 2024-05-24 13:14:19 +03:00
parent 9791ba4b49
commit c444895945

View File

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