Skip to content
Bug Barometer

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 workaround

Summary

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

  1. 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.
  2. Rebuild the Product search index.
  3. Make sure a product exists with a name that contains a hyphenated word including a stop word, for example "No-Iron Textured Dress Shirt".
  4. 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".
  5. Observe that both searches return 0 results.
  6. Search for "No Iron Textured Shirt" (no hyphen). Observe that the product is returned.


History

  1. Status changed to Solution in Progress

    Nov 30, 2026

  2. Description updated

    Nov 30, 2026

  3. First tracked here as In Review with 2 reports

    Nov 30, 2026

Also open in B2C Commerce