I've installed the module, but now it throws a warning: "Amasty Elastic is not working because "elasticsearch6" search engine is set in app/etc/env.php file".

I've installed the module, but now it throws a warning: "Amasty Elastic is not working because "elasticsearch6" search engine is set in app/etc/env.php file".

The error indicates that the search engine settings might be hardcoded or incorrectly specified. To resolve the issue, follow these steps:

For a cloud environment, check the file: .magento.env.yaml. In this file, you need to verify and, if necessary, change the engine to amasty_elastic if you want to use Amasty Elastic or to amasty_elastic_opensearch if you want to use Amasty Opensearch.

Check the app/etc/env.php file for any hardcoded search engine settings:

example of hardcoded search engine settings

If there is a hardcoded setting, it should be removed or updated to the desired engine.

After making these changes, follow these steps:

  1. In the Amasty_ElasticSearch module configurations, specify the required Search Engine.



  2. Navigate to Store -> Configuration -> Catalog -> Catalog -> Catalog Search and ensure that the same Search Engine is used.

  3. Execute the following commands:
php bin/magento app:config:import
php bin/magento se:up
php bin/magento indexer:reset
php bin/magento indexer:reindex

      • Related Articles

      • I face some issues with the Elastic Search extension. What should I check?

        If the extension doesn't work as expected (e.g. search results are not relevant or do not display at all), we'd recommend checking the module configurations following the instructions below. 1. A compatible version of the Elasticsearch Engine should ...
      • Is it possible to install Elastic Engine on a separate server?

        For the efficient work of the Elastic Search module, installation of the Elastic Engine is required. Elastic Engine is the core component that proves a fast and relevant search process. As a common practice, the engine is installed and configured on ...
      • How to configure search synonyms in Amasty Elastic Search?

        Besides other features like Search Relevance Rules, Stop Words, etc., the Amasty Elastic Search extension supports Search Synonyms. Default Magento synonyms aren't used in Amasty Elastic Search, the module manages synonyms separately. Step 1. To ...
      • What is causing the "search engine doesn't exist" error?

        You might come across the following error in system logs when Live Search is used. The "elasticsearch" part can also be slightly different in various cases, for example, "elasticsearch7" or "opensearch" can be mentioned instead: report.ERROR: ...
      • Why should I use your module instead of Magento Elastic Search?

        Starting from version 2.4, Magento works with the Elastic Search that greatly impacts the overall performance of the website. Using Elastic Search as a search engine provides faster page loading and more relevant search results. Within the default ...