Storefront search returns 0 results when a hyphenated word in the search phrase contains a stop word
Not fixed yet. Salesforce is working on a fix.
There's a workaroundSummary
Storefront searches return no results when the search phrase includes a hyphenated word that contains a stop word, such as "the" in "Off-the-Shoulder" or "no" in "No-Iron". The same product is found when the name is typed without hyphens, or when only the product ID is searched.
This happens because stop words are handled differently when the product index is built and when a search phrase is processed. When the index is built, stop words are removed from product names, so the stop word inside a hyphenated name is not stored. When a search phrase is processed, the hyphenated word is checked as a whole, so it is not recognized as a stop word. It is then split into its parts, and every part, including the stop word, is required to match. The stop word is not in the index, so the search finds nothing.
Workaround
Search using one of these approaches instead:
- Type the product name without the hyphen, for example "Off the Shoulder" or "No Iron".
- Search by the product ID alone.
Steps to reproduce
- In Business Manager, go to Merchant Tools > Search > Search Dictionaries > Stop Words, and make sure "no" is in the stop word list for the English (United States) locale.
- Rebuild the Product search index.
- Make sure a product exists with a name that contains a hyphenated word including a stop word, for example "No-Iron Textured Dress Shirt".
- On the storefront, search for "No-Iron Textured Shirt". Also search for the product ID followed by the name, for example "25604455 No-Iron Textured Shirt".
- Observe that both searches return 0 results.
- Search for "No Iron Textured Shirt" (no hyphen). Observe that the product is returned.
History
Status changed to Solution in Progress
Nov 30, 2026
Description updated
Nov 30, 2026
First tracked here as In Review with 2 reports
Nov 30, 2026
Also open in B2C Commerce
Salesforce Partner Community - Partners are unable to see obtained Certifications
Solution ScheduledCommerce / B2C CommerceReported Jan 4, 2022289 reports289reports
Product Index Broken for Turkish locale as the Unicode LATIN CAPITAL LETTER *I* transforms to LATIN SMALL LETTER DOTLESS *ı*
Solution ScheduledCommerce / B2C CommerceReported May 27, 202046 reports46reports
Boomi integrations can fail with java.net.SocketException: Unexpected end of file from server; Caused by: Unexpected end of file from server
Solution ScheduledCommerce / B2C CommerceReported Sep 29, 202138 reports38reports
Expose SendGoogleSiteMap Pipelet as Script API / OCAPI
Solution ScheduledCommerce / B2C CommerceReported Mar 10, 202034 reports34reports