From 93c9fcc248f70f0bed20d5d012da57f6031bb82f Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 2 Jun 2024 18:52:34 +0300 Subject: [PATCH] search-with-images30 --- services/search.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/search.py b/services/search.py index 9347426d..96da472b 100644 --- a/services/search.py +++ b/services/search.py @@ -179,6 +179,7 @@ class SearchService: body=search_body, size=limit, from_=offset, + _source=False, _source_excludes=["title", "body", "subtitle", "media", "lead", "_index"]) hits = search_response["hits"]["hits"] results = [{"id": hit["_id"], "score": hit["_score"]} for hit in hits]