Normal, Magento 2.4.6 is using Elasticsearch 7 Module. But some server doesn’t install Elasticsearch 7 and have Elasticsearch 8 installed on it. Elasticsearch doesn’t support downgrade Elasticsearch from 8 to 7.
So, you can fix by install Elasticsearch 8 Module on your Magento.
Step 1. install Elasticsearch 8 Module by command line:
composer require magento/module-elasticsearch-8 --with-all-dependencies
Step 2. Turn on Elasticsearch extensions by command line:
php bin/magento module:enable Magento_InventoryElasticsearch Magento_Elasticsearch8 Magento_Elasticsearch
Step 3. Change search engine to elasticsearch 8 by command line
php bin/magento config:set catalog/search/engine elasticsearch8
php bin/magento config:set catalog/search/elasticsearch8_server_hostname "localhost"
php bin/magento config:set catalog/search/elasticsearch8_server_port 9200
Step 4. Reindex, clean and flush cache
php -dmemory_limit=4G bin/magento indexer:reindex && php bin/magento cache:clean && php bin/magento cache:flush
Now, you can check how products show on your website.
Leave a Reply