Adding linked pages to search engine

Published August 26, 2022
Modules
Difficulty
Selected Clients
ikea logomig logo

To make navigating the site for our customers easier, we can use the product search bar to find returns, policy, contact pages, and so on. With Synerise AI search, you have the possibility to add native hints of the pages in the product search space. You can use custom queries to create matches linked to predefined pages.

This use case describes the process of returning a specified by us phrase linked to return subpage, when a specific phrase like returns is searched. Implementation is based on using query rules and returning custom data.

The view of linked pages in the search engine

Prerequisites


Add Rules


In this use case, when a customer types returns into a search engine, it will return linked pages containing this phrase as a relevant search result.

  1. Go to AI Search icon AI Search > Indexes.

  2. Select an index from the list.

  3. Click the Rules tab.

  4. On the right side of the screen, click Add rule.

  5. Name the rule.

  6. To adjust the query conditions, in the Conditions section, click Define.

    1. Choose the Query tab.
    2. Next to If query, choose Contains from the dropdown list.
    3. In the Phrase section, in the Type word field, enter returns.
    4. You can add more phrases.
    5. Click Apply.
      Example of conditions the query needs to meet so the rule can be triggered
      Example of the query conditions
  7. To define how the search engine reacts to the defined conditions, in the Consequences section, click Define.

    1. Click Add consequence and choose Return Custom Data from the dropdown list.

    2. Enter a custom JSON data, based on the scrypt below.

            [{
              "redirect": "https://demoshop.com/returns_to_shop",
              "title": "Returns to shop"
          }, {
              "redirect": "https://demoshop.com/returns_parcel_locker",
              "title": "Returns with parcel Lockers"
          }, {
              "redirect": "https://demoshop.com/returns_courier",
              "title": "Courier returns"
          }, {
              "redirect": "https://demoshop.com/returns_and_compaints",
              "title": "Returns and complaints"
              }]
              

      Important: This is just an example for reference, you should create JSON according to your business needs.
    3. Click Apply.

      Example of what happens if the conditions are fulfilled
      Consequences configuration
  8. In the Schedule section, you can define when the query rule applies.

  9. Click Save & Publish.

What’s next


In the code that is responsible for the implementation of this AI Search, you need to implement support for the JSON returned by the query rules in order to display the links.

Check the use case set up on the Synerise Demo workspace


You can check the query rules configuration directly in Synerise Demo workspace.

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker