OpenSearch Product Search Optimization for Magento 2
- Compatibility
- 2.4.9, 2.4.8, 2.4.7, 2.4.6
- Hyvä theme
- Hyvä compatible
Description / OpenSearch Product Search Optimization for Magento 2
MAGENTO 2 · OPENSEARCH · SKU AND EAN · AUTOCOMPLETE
Help customers find the right product.
Kowal Search Optimizer
Adjust OpenSearch ranking to match product names, codes, and the language your customers use. Combine field weights, exact matches, controlled typo handling, and manual synonyms with suggestions and a history of phrases with no results.
OpenSearch 2 and 3 profiles · Weights and synonyms · Optional Hyvä adapter
HOW IT WORKS IN PRACTICE
01 · Select the profile and fields
Check the mapping and set weights and identifiers.
02 · The customer enters a phrase
Autocomplete and ranking help them reach the offer.
03 · Improve your catalog
Phrases with no results point to areas for further optimization.
What does your store gain?
Explore the module’s features, use cases, and settings.
Meet the module
Kowal Search Optimizer is a Magento 2 module that improves the quality, relevance, and predictability of product search in an online store. The extension was designed for stores where customers search for products not only by name, but also by SKU, EAN, brand, phrase fragment, common product name, or with a typo.
The module does not replace Magento’s native search mechanism. Its purpose is to intelligently extend the way queries are built for OpenSearch, so the most important products appear higher in the results and customers reach the right product page faster.
The problem this module solves
Standard Magento search is often not enough for stores with a large product catalog, a technical catalog, or products with similar names. A customer may enter a product code, EAN, manufacturer name, abbreviation, common name, or a phrase with a typo — and still expect relevant results.
Kowal Search Optimizer helps solve common issues:
- a product does not rank high even when the exact SKU is entered,
- entering an EAN code does not immediately lead to the right product,
- a typo results in an empty results list,
- products that match only in the description outrank products that match by name,
- the administrator does not know which phrases customers search for unsuccessfully,
- changing search weights requires developer work.
The module was designed to improve result quality without disrupting standard Magento catalog rules such as product visibility, status, store, website, or stock.
Better search result ranking
The module lets you assign different levels of importance to different product fields in the search engine. A match in the product name can have a greater impact on the result than a match in a long description, while SKU and EAN can be treated as the highest-priority fields.
The first version includes weight configuration for, among others:
- product name,
- SKU,
- EAN,
- manufacturer or brand,
- short description,
- long description.
Exact match by SKU and EAN
One of the module’s key features is prioritizing exact matches by product identifiers. If a customer enters an SKU or EAN, the right product should appear high in the results instead of losing to products that only match incidentally in the description.
The module’s match priority follows this order:
- exact match by EAN,
- exact match by SKU,
- partial or prefix match by EAN,
- partial or prefix match by SKU,
- other product fields.
Typo handling and fuzzy search
The module enables controlled fuzzy search, which means search that is resistant to minor typos. As a result, a customer who enters an incorrect brand or product name can still see meaningful results.
Fuzzy search is configurable so it does not reduce result relevance through overly aggressive matching.
Autocomplete with products
Kowal Search Optimizer adds a lightweight autocomplete popup that shows customers suggestions while they are typing a phrase. In the first version, the popup:
- in the described v1 variant, started from 3 characters; the current threshold is configurable,
- shows up to 8 products,
- includes a See all results link,
- uses the same ranking logic as the full results list,
- shows the product name, SKU, URL, thumbnail, and frontend price.
This allows customers to go directly to a product or to the full results list faster.
Simple synonyms
The module allows you to manually add basic synonyms from the Magento configuration. The administrator can define pairs or groups of phrases that should be treated as related, for example:
television, tv
bathroom faucet, sink faucet
wc, toilet
In the first version, synonyms are global, entered manually, and approved manually. Advanced AI suggestions and a synonym approval workflow are planned as a possible extension after version v1.
Logging phrases with no results
The module records phrases that returned no products. This allows the administrator to check what customers are actually searching for and, based on that:
- improve product names,
- add synonyms,
- expand the offer,
- change descriptions or attributes,
- better understand customer needs.
The admin panel includes a simple read-only grid with a list of phrases with no results, filtering by date, store, and phrase, and sorting by date.
Safe fallback
The module was designed with store stability in mind. If an error occurs in the layer that extends search, search should return to Magento’s native behavior within the scope of supported extension errors.
This is especially important in production stores, where search is one of the key elements of the shopping path.
Who is this module for?
Kowal Search Optimizer is especially useful for Magento 2 stores that:
- have a large product catalog,
- sell technical products,
- use SKU, EAN, GTIN, or manufacturer codes,
- have many similar products,
- want to improve search quality without building an external search merchandising system,
- want to analyze phrases with no results,
- need simple search weight tuning from the Magento panel.
The module is a good solution for B2C and B2B stores where customers often know what they are looking for but enter the product in different ways.
Customers find products faster
Better ranking, SKU/EAN support, typo handling, and autocomplete shorten the path from entering a phrase to opening the product page.
Fewer empty results
With fuzzy search, synonyms, and analysis of phrases with no results, the store can systematically reduce the number of searches that end with no results.
More control for the administrator
The administrator can change field weights, fuzzy settings, synonyms, and logging without changing code every time.
Safe implementation
The module assumes fallback to native Magento search and can be disabled from the configuration.
Data for catalog optimization
Phrases with no results show the real language customers use. This is a practical data source for improving names, descriptions, synonyms, and the store’s offer.
OpenSearch profiles and field availability
The OpenSearch 2.x profile supports broader identifier matching, while the 3.x profile uses .keyword fields, more cautious fuzzy matching, and bool_prefix autocomplete. Match the profile to your instance and index mapping.
The module checks field availability before extending the query. Configuring the EAN or brand weight alone does not add missing attributes to the index. After installation, include catalogsearch_fulltext reindexing.
Current values and tuning
Stores → Configuration → Kowal → Search Optimizer provides ranking, fuzzy, synonyms, autocomplete, logging, and colors. The current config.xml has an autocomplete threshold of 2 characters and a limit of 8 products; the older v1 variant description indicated 3 characters.
Default weights are: name 10, SKU 8, EAN 7, manufacturer 5, short description 3, and description 1. Synonyms are disabled by default; you enter them manually. Check the relevance of changes using real phrases.
Hyvä and on-demand suggestions
The package includes the optional Kowal_SearchOptimizerHyva. On Hyvä, enable both modules and set Enable Hyva Autocomplete for the appropriate store view. Luma does not require Hyvä installation.
The main autocomplete assets are loaded on focus, click, or typing. The Hyvä adapter works without jQuery and RequireJS while preserving normal form submission. A customized header requires the search field to be properly connected.
Logs and fallback scope
The read-only grid shows queries with no results, and cron organizes history according to retention. By default, logging is enabled, retention is 180 days, and saving customer_id is disabled.
Fallback applies to errors in the query extension layer. It does not replace a functioning OpenSearch service and does not fix search infrastructure failures. AI for synonyms remains a possible future extension.
Installation via Composer
Package kowal/module-search-optimizer, module Kowal_SearchOptimizer. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to your store’s process.
From configuration to results
1. Select the profile and fields
Check the mapping and set weights and identifiers.
2. The customer enters a phrase
Autocomplete and ranking help them reach the offer.
3. Improve your catalog
Phrases with no results point to areas for further optimization.
The customer searches by code or with a typo
An exact SKU can receive additional priority. With a minor typo, controlled fuzzy matching helps find the name if the data and mapping allow it.
Phrases with no results show where it is worth improving attributes or adding a synonym. You check tuning results using representative queries from your own catalog.
Adapt search to the way your customers look for products
Want to adapt the module to your store? Ask about implementing Kowal Search Optimizer and discuss the configuration or any needed extensions.
More Information
| Hyvä theme | Hyvä compatible |
|---|---|
| Theme compatibility | Hyvä, Luma / Blank, KOWAL |
Change Log
Module Installation Instructions
Installation via Composer
You will receive Composer repository access details, including the customer email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with your account email address and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.
composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-search-optimizerCompleting the installation
After installing the package, update Magento and clear the cache:
php bin/magento setup:upgradephp bin/magento cache:flushIn a production environment, also run DI compilation and deploy static files according to your store’s deployment process.
The HiFiStation.pl store, offering hi-fi equipment, home theater systems, headphones, and audio accessories, implemented the Kowal Search Optimizer module to improve product search quality in Magento 2.
The biggest challenge was a specialized catalog where customers search for products by brand names, models, SKUs, EANs, and partial technical markings. The module improved result ranking, strengthened exact matches for identifiers, added autocomplete, and enabled analysis of search phrases with no results.
With the implementation, the store gained a more predictable and convenient search experience, better aligned with the real behavior of audio industry customers.