The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

How to Configure Search Catalog search in Magento 2

In this post, we will introduce how to configure Search or Catalog search in Magento 2. Setting the minimum and maximum number of characters that can be submitted in a query is an important part when you adjust the Catalog Search configuration. For example: you can choose the minimum number 1 and the maximum number 148.

This configuration provides your customers with a useful tool to find the product they want just by typing a few words or phrases. Once their shopping experience is improved, they are more likely to finalize the purchase. You can set this up in the default Magento 2, or use Mageplaza AJAX Search extension with more amazing features.

How to Configure Search: Catalog search

5 Steps to Configure Catalog Search in Magento 2

To configure catalog search in Magento 2, please follow steps below:*

  1. On the Admin panel, click Stores. In the Settings section, select Configuration.
  2. Select Catalog under Catalog in the panel on the left
  3. Open the Catalog Search section, and continue with following:
    • In the Minimal Query Length field, enter the number to set minimum characters that can be submitted in a query
    • In the Maximum Query Length field, enter the number to set maximum characters that can be submitted in a query
  4. To limit the length and word count of search query text, do the following:
    • Set Minimal Query Length to the minimum number of characters that can be submitted in a query.
    • Set Maximum Query Length to the maximum number of characters that can be submitted in a query.
  5. When complete, click Save Config

NOTE

  • Ensure the search engine server is active. If it’s on a different host from Commerce, log in to the Commerce server, ping the search engine host, and resolve any network issues.
  • Check the command window where Elasticsearch or OpenSearch is initiated for stack traces and exceptions. Resolve these issues, ensuring the search engine is started with root privileges.
  • Ensure that the UNIX firewall and SELinux are disabled or configured with rules allowing communication between the search engine and Commerce.
  • Verify the Server Hostname field value; try using the server’s IP address instead.
  • Run the netstat -an | grep command to check if the port specified in the Server Port field is free. For instance, to see if the search engine runs on its default port, use:
    netstat -an | grep 9200
    
  • If it’s running on port 9200, you’ll see output similar to:
    `tcp        0      0 :::9200            :::-         LISTEN`
    

Now, are you ready to make changes to your catalog search? Share it with your friends or business partners if you think it is useful! If you need another tool to enable better navigation, check out Search Extension and Layered Navigation by Mageplaza. I think you’ll love them!

Explore Search Settings in Magento 2

Related Post

Image Description
Hello, I'm the Chief Technology Officer of Mageplaza, and I am thrilled to share my story with you. My deep love and passion for technology have fueled my journey as a professional coder and an ultra-marathon runner. Over the past decade, I have accumulated extensive experience and honed my expertise in PHP development.

Looking for
Customization & Development Services?

8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.

Get free consultant
development service
x

    Explore Our Products:

    People also searched for

    Subscribe

    Stay in the know

    Get special offers on the latest news from Mageplaza.

    Earn $10 in reward now!

    Earn $10 in reward now!

    comment
    iphone
    go up