Hi, we have multiple test instances which we clone to push code to production, while adding some test products in instances, its getting indexed into our live index, and causing some conflicts. Can you pls provide some action, to prevent indexing if its a test instance ?
// add_filter( WPSOLR_Events::WPSOLR_FILTER_SOLARIUM_DOCUMENT_FOR_UPDATE, 'disable_indexing', 1, 5 );
function (disable_indexing) {
if (instance !== 'Live') {
// code to stop indexing
}
}