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

This commit is contained in:
Untone 2024-06-02 18:52:34 +03:00
parent 2365485a68
commit 93c9fcc248

View File

@ -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]