allow search_type to be specified