Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Algolia reindex in Magento

In my Magento I have some modules that do changes to DB manually. For ex., changing some attributes, or importing new products from some catalog etc.

So, Algolia hooks not used in this case.

Is there some way to proceed algolia reindex from php-script?

like image 678
Serge Avatar asked Dec 20 '25 01:12

Serge


1 Answers

You can use magento indexer or magerun (http://magerun.net/) or directly indexer.php with the following commands

n98-magerun --root-dir=/var/www/htdocs index:reindex algolia_search_indexer

or

php -f shell/indexer.php -- -reindex algolia_search_indexer

like image 188
Max Avatar answered Dec 24 '25 10:12

Max



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!