How do stop words influence the search results?

How do stop words influence the search results?

In search functionalities, 'stop words' play a crucial role in filtering out unnecessary words to enhance the accuracy of search results. Stop words are common words (like 'and', 'the', 'a') that are often ignored in search queries to streamline the search process. They are set up in the system to prevent these words from skewing search results.

To illustrate the impact of stop words, let's consider an example using synonyms and stop words set in the Admin Panel.

1. Setting Synonyms: In the Admin Panel → System → Manage Synonyms grid, there are synonyms such as 'capri', 'ABC' and 'A B C' set up to yield similar search results.



2. Adding a Stop Word: In the Admin Panel → System → Manage Stop Words, 'B' is added as a stop word.



3. Executing Search Queries:

a) Search Query 1: 'ABC':



b) Search Query 2: 'A B C':



Due to the presence of 'B' as a stop word, the system alters the 'A B C' query to 'A C' before processing it through Elasticsearch. Since 'A C' is not specified as a synonym for 'ABC', different search results are obtained for each query.

      • Related Articles

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