Skip to content

Commit c03ec54

Browse files
committed
services: include Opensearch meta in the results
* Sometimes, keys relevant to the serialization process are not included inside ``_source``, i.e. "highlight." By adding ``hit.meta`` as part of the serializer context, we make them available without the risk of name collision.
1 parent a79e3fb commit c03ec54

File tree

1 file changed

+1
-0
lines changed
  • invenio_communities/communities/services

1 file changed

+1
-0
lines changed

invenio_communities/communities/services/results.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def hits(self):
5757
context=dict(
5858
identity=self._identity,
5959
record=record,
60+
meta=hit.meta,
6061
),
6162
)
6263
if self._links_item_tpl:

0 commit comments

Comments
 (0)