search-with-images32
Some checks failed
Deploy on push / deploy (push) Has been cancelled

This commit is contained in:
Untone 2024-06-02 18:58:24 +03:00
parent 4933553d50
commit 44b797c1de

View File

@ -168,7 +168,7 @@ class SearchService:
self.client.index(index=self.index_name, id=str(shout.id), body=index_body)
async def search(self, text, limit, offset):
logger.info(f"Ищем: {text}")
logger.info(f"Ищем: {text} {offset}+{limit}")
search_body = {
"query": {"multi_match": {"query": text, "fields": ["title", "lead", "subtitle", "body", "media"]}}
}