Search engine for a brand with multiple languages and currencies
AI search is not difficult tool to use, especially when we use one language. A lot of our customers are operating in many markets and want to use search in different languages. It is hard to avoid a situation where a user enters a different language when searching certain categories in his language on the website. We can accept it and the fact that he will find a blank page with no results, but on the other hand we can set up the search process and, based on that, show him the products he is looking for no matter which language he uses.
Challenge
Our client had one e-commerce platform that uses different variants depending on the region chosen by customers, currencies available on the chosen region and website language. Additionally, each market had its own product stock. So, in fact we had several e-commerce operations under one domain.
Our customer wanted to have all the data in one place and execute all campaigns from the one place as well. He was also interested in creating AI search which makes it possible to search for products in different languages.
Prerequisites
- Synerise tracking code, to collect all necessary events from the website.
- Product feed implemented.
- OG tags.
- Collecting transactional events.
Process
- Prepare product feeds for each market.
- Prepare a search ranking.
- Set up AI search - query rules and synonyms.
Prepare product feeds
-
Create separated product feeds for each market with additional information about those languages on the website which we want to use in our search - every attribute like description, title, type, category should be added in two languages. Everything in the Google merchant format. Thanks to that, even if the customer is on the English version of the website, he can search using Arabic words as well.
-
Every search for each region has to be built on the basis of separate product feeds. So, we have to prepare different indexes for such an AI search. Thanks to that we can choose, based on which product feed we want to build our models on. As you can see below, we can choose one of the imported product catalogs and later use it to prepare the appropriate campaign.
Prepare a search ranking
In the case of a search engine, the most important step of setting it up is to prepare a search ranking. This means you have to indicate which attributes around the product have to be searchable and assign their importance.
As you can see here, we have a lot of attributes from the product feed, from this customer, but the most important are searchable attributes which will be search at the beginning. In our case it will be:
- Category
- itemID
- attributes.product_type_ar – second language
- brand
- title
In medium and low importance, we have also the next attributes from the product; description, gender, attributes.title_ar, attributes.description_ar, and more of them in the low importance (e.g. size, pattern etc.).
Set up AI Search
Query rules
Synerise lets you optimize search using our query rules. It also allows us to prepare seven better search results.
Based on this, in just a few steps you can decide that if somebody enters a query, you can replace it with a different phrase and show him specific content.
We can prepare such query rules in Data Management – Indexes - New index, clicking button “create new” in query rules.
We have to complete 3 sections:
- Conditions
- Consequences
- Schedule
Let’s say that we want to prepare a query for when someone enters “dress” - we would like to show him products from the dress category in the Arabic language “فستان”.
So, we choose the title from the first steps subpage and add it to the consequences section. In this way we will define that if somebody enters “dress” we would like to replace this query with a new query, which is dress in Arabic.
Synonyms
You can also use synonyms to make the search more effective. To do this, add new synonym in the synonym section. Choose if it should work in one way or two ways.
It can be helpful if a lot of similar words for your category exist (sweatshirt and hoodie) or a lot of different products are in the same category e.g. beach accessories, where you can find towels, bags, umbrellas etc.