Indexing – automatically sanitize “,” and “&” chacters

<?php

// Add to your (child) theme's functions.php

add_filter( 'facetwp_index_row', function( $params, $class ) {
    if ( 'resource_center_library_type' == $params['facet_name'] ) {
        $value = $params['facet_value'];
        $value = str_replace( ',', '-', $value );
        $value = str_replace( '&', '-', $value );
        $params['facet_value'] = $value;
    }
    return $params;
}, 10, 2 );