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

This commit is contained in:
Untone 2024-06-02 18:47:01 +03:00
parent c29838b6ee
commit 27bea7d06f

View File

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