This commit is contained in:
parent
c29838b6ee
commit
27bea7d06f
|
@ -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]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user