Skip to main content

Change Magento search engine using CLI

You can use the Magento 2 CLI to do it, you can check your current search engine using:

php -f bin/magento config:show catalog/search/engine

if you want to change the engine to Elasticseach version 6 then use this command 

php -f bin/magento config:set catalog/search/engine 'elasticsearch6'