Add synonyms
In the Synonyms section, determine the substitutes for words and phrases.
There are to types of synonyms:
- One-way synonyms work only in one direction. For example, if “telephone” is entered in the Word input (on the left) and the Synonyms input (on the right) contains “smartphone”, then:
- search result for “telephone” will include smartphones,
- search results for “smartphone” won’t contain “telephone” products in results.
- Two-way synonyms work in two directions. For example, if “telephone” is is entered in the Word input and “smartphone” and “phablet” are synonyms, searching for “smartphone” or “phablet” also shows the results for “telephone”.
Requirements
Only for importing CSV file with synonyms:
- The file must be encoded into UTF-8; it can’t be UTF-8 BOM,
- Use commas as a word separator
Add synonyms
You can add synonyms in the following ways:
- one by one
- by importing a
CSV
file with synonyms
Procedure
- Go to AI Search > Indexes.
- In the list, click the index to which you want to add synonyms.
- Under the name of the index, select the Synonyms tab.
- Click Add synonym.
- From the dropdown list, select the method of adding synonyms:
- Add synonym - this option lets you add synonyms manually one by one,
- Import CSV - this option lets you add multiple synonyms by uploading a
CSV
file.
For further instructions, select the tab according to the scenario you want to follow.
- From the left dropdown list, define the type of the synonym:
- One way
- In the Word field, enter a word.
- In the Synonym field, enter the synonyms for the word.
- Two ways
- For two-way synonyms, in the Synonyms, field enter words related to each other.
- One way
- To add more synonyms, click Add synonym.
- To save the list, click Add.
Example CSV files
One-way synonyms only
word,synonyms,type
phone,smartphone,oneway
As a result, if a customer enters phone
in the search box, the results will show smartphones. It doesn’t work the other way round - if a customer types smartphones
, the search engine returns the list of smartphones.
Two-way synonyms only
word,synonyms,type
,"computer,PC",synonyms
As a result, the search engine will return the same type of results for computer
and PC
.
One-way and two-way synonyms in one file
word,synonyms,type
phone,smartphone,oneway
,"computer,PC",synonyms
- The first row contains one-way synonyms.
If a customer entersphone
in the search box, the results will show smartphones. It doesn’t work the other way round - if a customer typessmartphones
, the search engine returns the list of smartphones. - The second row contains two way synonyms, they are contained only in the second column, the first one remains empty.
The search engine will return the same type of results forcomputer
andPC
.