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: elasticsearch search engine doesn't exist. Falling back to livesearch
It means that, while Live Search is installed and configured in the backend of a Magento instance, the core_config_data table in the database that stores all the configuration info has some other search engine mentioned in it. This happens if backend configs were overridden by hardcoding one of the core Magento files:
app/etc/env.php
app/etc/config.php
To get rid of the error, it is recommended to update the catalog/search/engine record in the core_config_data table and replace irrelevant search engine name with "livesearch".
Related Articles
What's the difference between Advanced Search and Elastic Search?
In our catalog, we offer two search extensions for Magento 2 - Advanced Search and Elastic Search. Both of them are aimed at improvement of the search process but the functionality differs. Elastic Search consists of several components, including the ...
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 ...
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, ...
How to translate the search popup created by Amasty Advanced Search?
The stores often have multiple views for different languages. The Amasty extensions are easy to translate using the following article - How to translate a Magento 2 extension? However, there are peculiarities associated with the translation of the ...
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 ...