Handle non-existing phrases in search engine

Published July 01, 2022
Modules
Difficulty
Selected Clients
houseofhackney logoikea logosharafdg logo

With Synerise AI search, you can effectively control how your search engine processes queries. You can manage the behavior of the search engine by telling it to promote specific products, replace the query or a word in the query or remove a word from it in specific circumstances.

This use case describes the process of replacing a specified phrase used in the search query with a new one, defined by us, in case there are no results for a phrase because it does not appear in the catalog.

Query rules

Prerequisites


Add rules


In this use case, you replace query: ‘NYC’ and ’the city that never sleeps’ with new query. When a customer types any of these words into a search engine, it will return ‘New York’ 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 is from the dropdown list.
    3. In the field Type word in the Phrase section, type a word (or a phrase) in a singular form, that doesn’t exist in the search engine catalog.
    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 conditions the query needs to meet so the rule can be triggered
  7. To define how the search engine reacts to the defined conditions, in the Consequences section, click Define.

    1. Click Add consequence and choose Replace query from the dropdown list.
    2. Enter a query replacement.
    3. Click Apply.
      Example of what happens if the conditions are fulfilled
      Example of what happens if the conditions are fulfilled
  8. You can define when the query rule applies, in the Schedule section.

  9. Click Save & Publish.

Check the use case set up on the Synerise Demo workspace


You can also check the query rules configuration directly in Synerise Demo workspace at this link.

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