facetwp schedule index after pmxi_after_xml_import

<?php
/** schedule one time index **/
add_action( 'pmxi_after_xml_import', function() {
	wp_schedule_single_event( time(), 'fwp_single_index', array() );
});

/** needs to be availble to cron to run **/
function fwp_single_index() {
    FWP()->indexer->index();
}
add_action( 'fwp_single_index', 'fwp_single_index' );