How to configure the order of DYM and redirect
Overview
The default search processing order handles "Did You Mean" (DYM) suggestions before applying redirect rules. This can sometimes prevent redirects from triggering as intended when certain keywords are searched. There's a way to allow you to configure the order in which the search engine processes "Did You Mean" (DYM) suggestions and "Redirect Rules," providing greater control over the search experience.
Use Cases
- Changing Data
- Scenario: A redirect is set up for the keyword “clearance,” which is also a category name.
- Issue: The category name is later changed to “Sale.”
- Problem: When a user searches for “clearance,” no results match due to the name change, and DYM changes the word to “clothing,” leading to search results instead of the intended redirect.
- Misspelling
- Scenario: A redirect is set up for the keyword “returns,” which does not match any products.
- Issue: If the keyword is misspelled, the user receives DYM suggestions and irrelevant search results instead of the redirect.
- Problem: Correctly spelled keywords trigger the redirect, but misspellings do not.
Configuring the Process Order of DYM and Redirect
Enabling the Feature
To enable this feature for your engine, please contact your account manager
Processing Logic
- Default: The search processing order is:
- Search
- Did You Mean (DYM)
- Redirect Rules
- When Enabled: The new processing order will be:
- Redirect Rules
- If an applicable redirect rule is found, it will be applied, and 0 search results will be returned.
- If no redirect rule applies, the search process continues.
- Search
- Did You Mean (DYM)
- Redirect Rules (again, to catch any cases where DYM might lead to a term with an applicable redirect)
- Redirect Rules
By following these steps, you will be able to ensure that your search processing order aligns with your business needs, providing a smoother and more intuitive search experience for your users.
Updated 8 months ago