What's the difference between Match Modes AND/OR?

What's the difference between Match Modes AND/OR?

Elastic Search module provides a possibility to configure different search modes depending on the search attribute. With a suitable configuration, you can boost the relevance of the search results. In simple words, match mode (or search mode) is how the module handles the search request and what results are considered relevant.


In the module, there are two available match modes: AND and OR. You can set them for each search attribute individually in Stores → Configuration → Amasty Extensions → Elastic Search → Catalog → Search Query Settings.



The difference between the modes is in the way how the search query is being processed. For the AND match mode, the search results should have the exact match with the search query. Between two keywords it results in a search for products containing both of the words. For instance, the search sports equipment will retrieve all products that contain both words. 


Example returned products: bag for sports equipment, sports equipment for gym, sports essentials and gym equipment.


Match mode OR has a bit different behavior as it will return any products that contain at least one of the search terms. The same search sports equipment will retrieve products that contain either word.


Example returned products: tennis equipment, sports bag.

      • Related Articles

      • 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 ...
      • 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 ...
      • 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'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 ...
      • 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 ...