Perform search when switching search type