search-with-images
All checks were successful
Deploy on push / deploy (push) Successful in 1m8s

This commit is contained in:
2024-06-02 15:56:17 +03:00
parent 67e4cacb28
commit 465d9093bd
2 changed files with 9 additions and 9 deletions

View File

@@ -166,12 +166,7 @@ class SearchService:
async def search(self, text, limit, offset):
logger.debug(f"Ищем: {text}")
search_body = {
"query": {
"multi_match": {
"query": text,
"fields": ["title", "lead", "subtitle", "body", "media"]
}
}
"query": {"multi_match": {"query": text, "fields": ["title", "lead", "subtitle", "body", "media"]}}
}
if self.client: