Add search type handling functionality.