Thanks for your help. This modification was a request from our SEO team. I was able to modify with the following:
add_filter( 'wpseo_robots', 'yoast_seo_robots_modify_search' );
function yoast_seo_robots_modify_search( $robots ) {
if ( is_search() ) {
return "noindex, nofollow";
} else {
return $robots;
}
}