How to fine-tune Elastic Search module for exceptional results?

How to fine-tune Elastic Search module for exceptional results?

If you are experiencing unexpected search results while using our Elastic Search module, please follow these steps to confirm your configuration is correctly set.

1. Elasticsearch Engine Configuration

Ensure that the Amasty Elasticsearch option is selected as the search engine in your Admin Panel. Navigate to Stores > Configuration > Amasty Extensions > Elastic Search, and confirm that Amasty Elasticsearch, Amasty Elasticsearch or Amasty Opensearch option is chosen in the Search Engine field based on the search engine used on your side.



Double-check that the connection to Elasticsearch is successful.

2. Search Attribute Weights

Verify that the weight of search attributes aligns with your expectations. Navigate to Stores > Configuration > Amasty Extensions > Advanced Search > Search Attributes and adjust the weights of search attributes to reflect your desired search prioritization.



For instance, let's say your e-commerce store uses brands, and you've assigned a higher weight to the 'brand' search attribute compared to the 'Product Name.' As a result, when a user performs a search using a brand name as a query, products associated with that brand will be prioritized and displayed before items that only have the brand name mentioned in their product name.

3. Search Page Relevance Rules

Review your Search Page Relevance Rules to avoid undesired product placement. Navigate to System > Amasty Elasticsearch > Search Page Relevance Rules and check your rules to ensure they are configured as intended.

4. Match Modes

Check that the Match Modes are configured correctly in the Stores > Configuration > Amasty Extensions > Elastic Search > Catalog. In general, Match Mode = OR retrieves results containing either of the values from the search query, while Match Mode = AND requires strict matching.

For more information and usage examples, please refer to our helpful article.

5. Custom Sorting

Confirm that no custom sorting is applied to the search results page. Make sure that sorting by relevance is selected for the best search experience. Navigate to your search results page and check that the sorting option is set to Relevance.



If the custom sorting is applied on the search results page on your side, check the custom module setting it. For example, if you are using our Improved Sorting module, the Default Sorting on Search Pages configuration can be checked in the Stores > Configuration > Amasty Extensions > Improved Sorting > Sorting by Default tab.



By following these steps, you can troubleshoot and optimize the work of the Elastic Search module for the desired search results. If you continue to experience issues or have further questions, please don't hesitate to contact our support team for assistance.

      • 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 ...
      • 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 ...
      • 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 ...
      • 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'd like to sort the search results, is it possible?

        The Elastic Search extension provides the functionality to create relevance rules for moving the position of specific products in the search results. Please find the details about creating relevance rules in our guide. If our Improved Sorting ...