How to run search reindex via command line interface
How to reindex Magento search indexes
To reindex search indexes (and indexes of Sphinx Engine, if you use it) via command line (shell, SSH) go to the magento root folder and use this command:
php shell/indexer.php --reindex catalogsearch_fulltext
How to reindex search indexes for Sphinx Engine installed on the same Magento server.
Go to <magento_root>/shell
folder and use php script search.php
:
~! Commands don`t work with "Buit-in Search Engine" mode.
Usage: php search.php [options]
--engine Get Current Engine Class Name
--reindex Run sphinx reindex
--reindex-delta Run sphinx delta reindex
Examples
php search.php --engine
php search.php --reindex-delta
How to import synonyms and stopwords
Go to <magento_root>/shell
folder and use php script search.php
:
Usage: php search.php [options]
--import-synonyms <csv file> Import synonyms
--import-stopwords <csv file> Import synonyms
Examples
php search.php --import-synonyms /dir/dir/en.txt
php search.php --import-stopwords /dir/stopwords_nl.txt
Was this page helpful?
Your feedback about this content is important.
Let us know what you think.