check for search_type from input not from params