Disable SearchWP or Relevanssi integration / search page handling

<?php
// deactivate FacetWP integration on search results pages, for when the search result page does not use facets

add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
	if ( $query->is_search() && $query->is_main_query() ) {
		$is_main_query = false;
	}

	return $is_main_query;
}, 5, 2 );