I'm using magento 2.1.3 and I'm getting the following error when I try to run the
php bin/magento indexer:reindex command
Catalog Search indexer process unknown error: There is no such engine: mysql2
Does anyone know how to fix this error?
Check your config in the node -
catalog/search/engine, by default it must be MySQL, unless you are using some other engine. In your case, for some reason, it set to mysql2, but Magento can't find any information about the type.
catalog/search/engine can be found in the
core_config_data database table as a path.
Building upon the previous answers:
From developer mode, to resolve, I first reset in core_config_data table to mysql, somehow it was specfied as mysql2. Then ran the following:
Open magento root directory path and do following commands:
php -f bin/magento setup:upgrade
php -f bin/magento cache:flush
php bin/magento indexer:reset
php -f bin/magento indexer:reindex
After, I ran chown to make sure my web user/group had correct assignment in all of Magento.