recreate-fixed

This commit is contained in:
Untone 2024-02-29 14:28:51 +03:00
parent 7ad9b7919a
commit 8de765ed50

View File

@ -125,7 +125,7 @@ class SearchService:
logger.debug(f' Ищем: {text}') logger.debug(f' Ищем: {text}')
search_body = {'query': {'match': {'_all': text}}} search_body = {'query': {'match': {'_all': text}}}
if self.client: if self.client:
search_response = await self.client.search( search_response = self.client.search(
index=self.index_name, body=search_body, size=limit, from_=offset index=self.index_name, body=search_body, size=limit, from_=offset
) )
hits = search_response['hits']['hits'] hits = search_response['hits']['hits']