exc-mw
All checks were successful
Deploy on push / deploy (push) Successful in 1m8s

This commit is contained in:
2024-06-04 08:10:57 +03:00
parent 231de135ca
commit d53256bcd7
4 changed files with 23 additions and 12 deletions

View File

@@ -180,7 +180,8 @@ class SearchService:
size=limit,
from_=offset,
_source=False,
_source_excludes=["title", "body", "subtitle", "media", "lead", "_index"])
_source_excludes=["title", "body", "subtitle", "media", "lead", "_index"],
)
hits = search_response["hits"]["hits"]
results = [{"id": hit["_id"], "score": hit["_score"]} for hit in hits]