Here it does not make sense to use the templated decorator. We should rather write something similar to response_formated_records (see https://github.com/kneczaj/invenio/blob/inspire_next-formatter-and-searchbar-improvements-trial2/invenio/modules/search/views/search.py#L111)