Force facets to use a specific Elementor query ID

<?php

/** give your query an id of "use_facet" **/

add_action( 'elementor/query/use_facet', function( $query ) {
	$query->set( 'facetwp', true );
} );

add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
	if ( true !== $query->get( 'facetwp', false ) ) {
		return false;
	}
	return $is_main_query;

}, 10, 2 );