This commit is contained in:
parent
2365485a68
commit
93c9fcc248
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user