For Releavnssi, A13375101B1A1 and A13375101A1 are two completely different words. It’s the same as saying that when you search for “populate” you get the results you expect but when you remove “la” and search for “popute”, you get no results. You wouldn’t, as “popute” is not a word on your site. It’s the same thing with the SKU codes; to Relevanssi, they function exactly as any other word would.
If your SKU codes have some inner logic where it makes sense to search for them without some parts inside them, you need to make sure Relevanssi indexes them in all possible ways. If it’s ok to remove the B1 inside the code, you must have Relevanssi index the code both ways, as A13375101B1A1 and A13375101A1. That way the product can be found with both codes.
You can use the relevanssi_content_to_index filter hook to add content to your posts. A filter function on that hook that reads in the SKU code, creates all the valid permutations of it and has Relevanssi index them would solve this problem.
The function would look like this:
add_filter( 'relevanssi_content_to_index', function( $content, $post_object ) {
$sku = get_post_meta( $post_object->ID, '_sku', true );
if ( $sku ) {
// Create the SKU permutations here
$content .= ' ' . $sku_permutation_1;
$content .= ' ' . $sku_permutation_2; // etc...
}
return $content;
}, 10, 2 );