Modify default search page args for relevnassi

<?php
/** better integration when using this filter than pre_get_posts
 ** to change search args for default search page (?s=)
 ** when using relevnassi and facet
 **/
add_filter( 'relevanssi_modify_wp_query', ( $query ) {
  $query->set( 'post_type', ['post', 'other_cpt'] );
  return $query;
} );