Resources Merchandising Actions

How to Set up Keyword Redirects

How to Set up Keyword Redirects

Why should you do it?

Redirects allow you to bypass the usual search results and take a customer directly to a page of your choosing if they search for a particular word or phrase.

Common use cases for this are when customers search for information about shipping, returns, sizes or any other information that’s not a product.

Some Algolia customers also use this feature to redirect users to category or brand pages, this can work well, but be sure to set up rules using exact-match or you may find it produces unexpected results.

NOTE: This requires a simple front end development work to be in place for the keyword redirect to be triggered. Check with your Development team.

  1. Load dashboard section: Rules 
  2. Select the correct index
  3. Click on “New Rule” button and select “Manual Editor”
    Manual Editor
  4. In the Condition(s) section, keep Query toggled on, select Is/Contains/Starts with/Ends within the dropdown and enter a query (e.g. “star wars”) in the input field.
  5. In the Consequence(s) section, click the Add consequence button and select Return Custom Data.
  6. In the input field that appears, add the data to return when the user query matches the Rule in the following format: 
    • { “redirect”: “” }
  7. For example, for the query “star wars” the custom data consequence will look like this: 
    • { "redirect": "" }
  8. Optional: add rule description for clarity and define a timeframe for the promotional campaign.
  9. Review the rule before saving
Merchandise Search Results PageSet up Promotional Banner