I'm using Sitecore 9 and SXA 1.7.
I have a few PDF files that I have uploaded into media library/files/myfolder, and an "instructions" template whose fields are title (type: single line text), Date (type: date), description (type: single line text), and file (type: file).
I have created a few items of type "instructions", and in each of their "file" fields there is one PDF file from the media library/files/myfolder path.
My question is: I created a search results component that searched for these "instructions" items, and I need it to view a download link for these PDF files. Specifically, to view a link that the user can click on, which opens the related PDF file in a new tab or so.
So far I've used the rendering variant to display each item's Name and Date, but I do not know how to show a download link for the PDF file. I have tried using reference->file in the rendering variant, but it shows nothing on the results page.