Refactored code in SearchUtil.

Made separate methods for each type of search, to make it easier to do a
search without an error in params.