add support for setting search_type