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