在我的Magento中,我有一些模块可以手动更改数据库.例如,更改某些属性,或从某些目录中导入新产品等.
因此,在这种情况下不使用Algolia钩子.
有没有办法从php脚本继续algolia reindex?
您可以使用magento indexer或magerun(http://magerun.net/)或使用以下命令直接使用indexer.php
n98-magerun --root-dir=/var/www/htdocs index:reindex algolia_search_indexer
要么
php -f shell/indexer.php -- -reindex algolia_search_indexer