Force Showing Excerpts When Showing Search Results

If you use the Genesis framework and want to force WordPress to show post excerpts when showing search results, use the snippet below:

add_action( 'genesis_before_loop', 'wpkb_excerpts_search_page' );
function wpkb_excerpts_search_page() {
    if ( is_search() ) {
        add_filter( 'genesis_pre_get_option_content_archive', 'wpkb_excerpts_search_page' );
    }
}

function wpkb_excerpts_search_page() {
    return 'excerpts';
}