Last updated: November 30, 2026. Added a short direct answer, a comparison table, current Expertrec product facts and definitions of key terms.
Read this blog on Magento 2 custom catalog search for more information.
In this post, I will introduce how to configure Search or Catalog search in Magento 2. Setting the minimum and the 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.
In Magento 2, catalog search is configured under Stores > Settings > Configuration > Catalog > Catalog Search. Set the Minimal Query Length and Maximum Query Length fields, then click Save Config. Alternatively, install the ExpertRec site search extension from the Magento Marketplace, which replaces the default search and adds a search bar with inbuilt facets.

Magento 2 custom catalog search settings
| Setting | Purpose | Example value |
|---|---|---|
| Minimal Query Length | Minimum number of characters that can be submitted in a query | 1 |
| Maximum Query Length | Maximum number of characters that can be submitted in a query | 148 |
How to configure Magento 2 catalog search
To configure catalog search in Magento 2, follow the steps below:
Path: Admin panel > Stores > Settings > Configuration > Catalog > Catalog Search. Example: Minimal Query Length 1 and Maximum Query Length 148.
- On the Admin panel, click
Stores. In theSettingssection, selectConfiguration.
- Select
CatalogunderCatalogin the panel on the left - Open the
Catalog Searchsection, and continue with the following:- In the
Minimal Query Lengthfield, enter the number to set minimum characters that can be submitted in a query - In the
Maximum Query Lengthfield, enter the number to set maximum characters that can be submitted in a query
- In the
- 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.
- When complete, click
Save Config
Magento 2 catalog search alternative
ExpertRec is a site search extension installed from the Magento Marketplace. It replaces the default Magento 2 search and adds a search bar with facets built in, which can be customised in the Expertrec Dashboard.
Alternatively, you can use a plugin to do the same. On Magento 2, all that you need to do is install the ExpertRec site search extension from the marketplace. This will automatically replace your default search and add a search bar that has facets inbuilt. You can do further customization in the Expertrec Dashboard that comes along with the plugin.





