How to update page from an action in modal

I have a search page, it has filter as modal opening when a button is clicked. when a button in the modal filter is clicked, the view of the search page should update with new list of results.
I did some research, and I found that we could pass the search function from the search page to the modal via params and call it from there, but I am not sure if this is recommended !??
What is the best way to achieve this ?