Dispatch events before indexing products and categories.