Search with pre-search function filtered by segment control

Hello!
Do you guys have a example of how to implement search label + filter searching results by selected item from segment control?