The store will not work correctly when cookies are disabled.
We use cookies to make your experience better.To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies. Learn more.
Follow the following steps to create a custom indexer in Magento 2:
Create the Indexer configuration file
Create Mview configuration file
Create Indexer class
Create the Indexer Configuration file
The indexer will be defined in the indexer.xml file.
Directory
app/code/VendorName/ModuleName/etc/indexer.xml
Content of indexer.xml
<?