Search and collection page

Hey, I am using the functionality of collection page.
There are many different specialists on a page. If I click one of them, I am able to view their profile. I have used collection page here.
There is a search bar on the same page. If I search for the specialists and if I click on one of the search results, I want to connect it with the collection page I have created means the specialist profile. how should I do that?