You need to set the sorting field for top hit to your timestamp in order to get the latest document.
Easy way to debug would be this: set it up in a metric visualization and use inspector to look at how the request is built.
This is how to do it in a metric visualization: Display latest value in a „Metric“