Overview
Starting from B2C Commerce version 26.4, a new feature switch, "Enable Strict Japanese Search/Index Matching", has been introduced. Enabling this feature resolves the previous issue in Japanese search where the search index and query fail to match for specific phrases.
Background: Previous Index/Query Mismatch Issue
Product search on a site is primarily driven by the following two processes:
In previous Japanese search behavior, while there were no issues during index creation, a problem occurred during query generation where the stemming processor would execute conversion processes without considering the surrounding context.
Example of the Problem: "Koinobori"
Suppose there is a product in the catalog named "こいのぼり 小物" (Koinobori Komono).
Because of this, a discrepancy arose between the index (のぼり) and the query (のぼる). This caused an issue where the product would not appear in the search results, even though the user's search phrase perfectly matched a part of the product name.
This feature can be enabled from the following menu in Business Manager:
The Effect of Strict Japanese Search/Index Matching
When this feature is enabled, token splitting and stemming processor operations during searches will correctly execute while taking context into account. This guarantees that when a search phrase perfectly matches a portion of a product's searchable attributes, the product will correctly appear in the search results.
Example of Improvement: "Koinobori"
Because the stemming processor contextually recognizes "nobori" as part of the phrase "koinobori," it will no longer incorrectly convert it to "noboru."
As a result, the query and the index perfectly match, and searching the phrase "koinobori" will correctly display the "Koinobori Komono" product in the results.
Other Improvement Examples
In addition to "koinobori," there are several other phrases that previously suffered from incorrect conversion processing in Japanese search. By enabling this feature, correct queries will be generated for these as well:
| Search Phrase | Previous Incorrect Query | Correct Query (After Enabling Feature) |
| 多機能ペン (Multifunction pen) | 多い | 機能 | ペン | 多 | 機能 | ペン |
| 二重ガーゼ (Double gauze) | 二 | 重い | ガーゼ | 二 | 重 | ガーゼ |
| 9枚入り (Pack of 9) | 9 | 枚 | 入る | 9 | 枚 | 入り |
Regarding Search Dictionaries (Synonyms, Stemming Exceptions, etc.)
Previously, the index/query mismatch issue could sometimes be worked around by configuring search dictionaries, such as adding synonyms or stemming exceptions.
Example: Registering "のぼり, こいのぼり" as synonyms, or adding "のぼり" as a stemming exception.
Once this feature is enabled, these workaround search dictionary entries become unnecessary. While leaving the settings as-is should not hinder search operations, it is recommended from an administrative perspective to delete these redundant entries in conjunction with enabling the feature.
If your changes involve deleting dictionary entries, a data replication (rebuilding the search index) will be required. Please use one of the following procedures in such cases:
Pattern A: Enabling the feature and deleting unnecessary search dictionaries simultaneously
Pattern B: Enabling the feature first and gradually deleting unnecessary search dictionaries later
Note: Further Enhancing Search Accuracy
To further improve the quality of Japanese search, we recommend using "Japanese - improved" stemming in addition to enabling the "Strict Japanese Search/Index Matching" feature. For more details, please refer to the knowledge article below:
005316843

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.