Only setting search type when applicable