Documentation

OnBeforeFullReindexClear

void
handler function();

"OnBeforeFullReindexClear" event is called during the full re-indexing. At the moment of the first step, directly prior to deleting all search index data.

Example of handler function:

<?

// register the "OnBeforeFullReindexClear" event handler of the "search" module
RegisterModuleDependences("search", "OnBeforeFullReindexClear", "my_module", "CMyModule", "TruncateTables");

// create the TruncateTables function method within the CMyModule class in the my_module
function TruncateTables()
{
global $DB;
$DB->Query("truncate table my_search_ext_data");
}

?>


© «Bitrix24», 2001-2022
Up