recreate-fixed
This commit is contained in:
parent
7ad9b7919a
commit
8de765ed50
|
@ -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']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user