Additionally please try to use the following code snippet:
class AWS_Relevance_Update {
public $terms = array();
public function __construct() {
add_filter( 'aws_indexed_data', array( $this, 'aws_indexed_data' ), 10, 2 );
add_filter( 'aws_search_terms', array( $this, 'aws_search_terms' ), 10, 2 );
add_filter( 'aws_search_query_array', array( $this, 'aws_search_query_array' ) );
}
function aws_indexed_data( $data, $id ) {
$data['terms']['full_title'][get_the_title( $id )] = 1;
return $data;
}
function aws_search_terms( $terms ) {
$this->terms = $terms;
return $terms;
}
function aws_search_query_array( $query ) {
global $wpdb;
if ( $this->terms ) {
$terms = '';
foreach( $this->terms as $term ) {
$like = '%' . $wpdb->esc_like( $term ) . '%';
$terms .= $wpdb->prepare( 'AND term LIKE %s', $like );
}
$relevance = "( case when ( term_source = 'full_title' {$terms} ) then 1000 else 0 end ) + ";
$query['relevance'] = preg_replace( '/\(SUM\([\s\S]*?\([\s\S]*?case[\s\S]*?end[\s\S]*?\)[\s\S]*?\+/i', '$0' . $relevance, $query['relevance'] );
}
return $query;
}
}
new AWS_Relevance_Update();
After adding it you need to reindex plugin table.
Regards