To provide the best search experience for your users, the extension automatically keeps all your data up to date, offering two indexing mechanisms in Magento:
- Section reindex. An entire section of the catalog (products, categories, pages) is uploaded to Algolia’s servers and reindexed.
- Single item reindex. A single resource (product, category, page) is uploaded to the servers and reindexed. Single item reindexing happens when a resource is updated.
That means that once you apply any changes to a category on the Admin page, this category will be reindexed automatically (assuming that you have enabled and configured the extension's indexing queue).
It is not possible to force Single Item Reindex via a command line. However, you can perform a Section Reindex for the categories section of your catalog by using the appropriate command:
algolia:reindex:categories (version 3.16 and higher)
indexer:reindex algolia_categories (version 3.15 and lower)
You can find more information about reindexing specific portions of the catalog here: https://www.algolia.com/doc/integration/magento-2/how-it-works/indexing.
Lastly, the extension version 3.16.0 introduces the Indexing Manager, which includes a new configuration section and a dedicated page in the Magento admin for triggering section indexing. You can find more information on this here: https://www.algolia.com/doc/integration/magento-2/how-it-works/indexing#indexing-manager