Perform search on switching type if there's a term