Hi,
Yes, it is possible. You can remove from the index table all source that you are not using for searching.
For example following code remove all sources except title, content and sku of product.
add_filter('aws_indexed_data', 'my_aws_indexed_data');
function my_aws_indexed_data( $data ) {
$new_terms = array();
foreach ( $data['terms'] as $source => $all_terms ) {
if ( strpos( $source, 'title' ) === 0 || strpos( $source, 'sku' ) === 0 || strpos( $source, 'content' ) === 0 ) {
$new_terms[$source] = $all_terms;
}
}
$data['terms'] = $new_terms;
return $data;
}
You need to add it somewhere outside plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets like
https://www.ads-software.com/plugins/code-snippets/. Also, after adding this code, you need to re-index plugin table.
Regards