Search doesn't encode hyphen and replaces it with a space
ID:
Backlog
Published on 5/29/2018
•
Last update on 12/22/2022
Summary
Warning: VTEX has two search options - VTEX search and VTEX Intelligent Search. This article refers to the VTEX search. To learn more about the VTEX Intelligent Search application, see this track.
When the searched term has a hyphen (-
), the search replaces this character with a space in the querystring, not bringing the expected result.
Simulation
Perform a search on your site with the hyphen (-
) character in the search term. Note that the hyphen value will be replaced by a space in the search.
Workaround
For products containing hyphen terms, enter in the field Substitute words
the term with space in place of the hyphen for the product to be found in the search result.