Search bar -action in the search bar to each records from databse

Hi, I created a search page in my application, I would like to make it so that as soon as I click on any product from the DATABASE that appears in the search list, the page will open showing the product, how do I do it?