Promoting mobile accessories in search using context rules

Published May 20, 2022
Modules
Difficulty

AI Search allows you to improve the search experience of your users by customizing search results to individual requirements by setting rules. The possibilities are endless.

Define a rule condition and consequence which tailors results based on the context of the search, so customers can find the products they’re looking for easier and faster than ever before.

This use case describes the process of creating a rule in AI search which promotes mobile chargers when a customer searches for charger from a mobile device.

Prerequisites

  • An item feed must be provided.
  • Enable the search engine for your workspace and create an index.
  • Implement AI search in any of your channels (mobile app, website etc.).
  • Implement the context parameter with value mobile to search request. It should be added when your customer enters the query on the mobile device.

Create rules


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

  2. Select an index from the list.

  3. Go to the Rules section.

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

  5. Enter the name of the rule.

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

    1. On the Query tab, to define the method of checking the query, choose the is condition.
      The is condition means the rule works only if a customer searches exactly for the phrase defined in the rule.
    2. In the text field, enter: charger
    3. In the Context (optional) field, enter: mobile.
      This means that the rule only works when the search request has the context = mobile parameter.
      Example of query conditions
      Example of query conditions
    4. Confirm the settings by clicking the Apply button.
  7. To define how the search engine reacts to the defined conditions, in the Consequences section, click Define.

    1. Click Add consequence.

    2. From the dropdown list, select the Filter query results consequence.

    3. Click Add filter.

    4. Select attribute that corresponds to product type.

    5. In the field next to the attribute name, enter the value that denotes mobile phone chargers or select it from the dropdown list.

      Note: Please note that the attribute name and its value depends on the rules used in the implementation process.
  8. Toggle the Mark as elastic switch on.

  9. Confirm by clicking Apply.

  10. To save and enable the query rule, click Publish.

Search context promotion settings
Search context promotion settings

Check the use case set up on the Synerise Demo workspace


You can check the rule 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