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 be used for the correct work of the extension. To check the version of the engine installed, use the following command in the CLI, where <host> and <port> should be replaced respectively with your hostname and port that were used for Elastic Search Engine installation:
curl -XGET <host>:<port>
2. Make sure the connection with Elastic Search is established. To do this, proceed to Stores → Configuration → Amasty Extensions → Elastic Search → Connection tab, make sure that Amasty Elasticsearch is used as Search Engine and click on the Test Connection button.
If Amasty Elasticsearch option cannot be selected, it is necessary to remove the section with the default search engine configuration from the app/etc/env.php or the app/etc/config.php configuration files. It is not recommended to do these changes on the Cloud environment, though. So, If you are setting up Elastic Search on a Cloud infrastructure, please refer to official Magento documentation.
3. Indexation plays a crucial role in the search process. If it fails, the extension may produce unexpected results. To make sure the search index is operating correctly, execute the following command in the CLI from the Magento root folder:
php bin/magento indexer:reset catalogsearch_fulltext amasty_xsearch_category_fulltext amasty_elastic_relevance_rule_product amasty_elastic_popup_data && php bin/magento indexer:reindex catalogsearch_fulltext amasty_xsearch_category_fulltext amasty_elastic_relevance_rule_product amasty_elastic_popup_data
Sometimes the reindex process is interrupted by the following exception:
startOffset must be non-negative, and endOffset must be >= startOffset, and offsets mus...
The error is caused by using multi-word synonyms. Starting from version 1.16.0, the extension allows using several words as a synonym. Please make sure that your Elastic Search extension is higher than 1.16.0 and update it if necessary.
In case updating the extension is not an option right now, check the synonyms list located at System → Amasty Elasticsearch → Manage Synonyms and remove multi-word synonyms:
jacket, blue jacket, jackets
Run reindex again, now it should be completed successfully:
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 ...
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 ...
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 ...
Can you install the Elastic Engine for me?
We have a special service for Elastic Engine installation in case you need assistance. Our support team will perform the installation for you and ensures that everything runs as intended. After the purchase of the service, a ticket will be created ...
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 ...