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?
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?
UPDATE core_config_data set value = 'mysql' where path='catalog/search/engine';
php -f bin/magento setup:upgrade
php -f bin/magento cache:flush
php -f bin/magento indexer:reindex
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.
Open magento root directory path and do following commands:
php -f bin/magento setup:upgrade
php -f bin/magento cache:flush
php -f bin/magento indexer:reindex
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.
mysql2
. After I disabled that module the error appeared.
i am able to test elasticsearch5 via admin panel. But it does not get index. If we are changing to mysql then whats the use of elastic search .