Thesaurus Administration
It can be accessed under the Smile ElasticSuite menu, via the Thesaurus entry.
You can create, update and delete your thesauri here.
Creating a Thesaurus
In this page you have a grid displaying all your thesauri. You can add a new one by clicking on the Add Thesaurus button.
First thing you will be prompted on when creating a thesaurus is choosing a type. Beware, the type can not be modified once the thesaurus is created.
Synonym
Parameter | Description |
---|---|
Thesaurus name | Name the synonym |
Active | The synonym will be active or not |
Store | Scope of the synonym. Synonym can only be applied at storeview level. |
Synonyms thesaurus will allow you to add separated lists of words that are synonyms of each other.
You can add as many list of words as you need. Each list of words has to be comma-separated.
In the example above, we have added a synonym between “man” and “men”, and also between “woman” and “women”.
Expansion
Parameter | Description |
---|---|
Thesaurus name | Name the expansion |
Active | The expansion will be active or not |
Store | Scope of the expansion. Expansion can only be applied at storeview level. |
Expansions thesaurus will allow you to add separated lists of words that are expansions of a reference term.
You can add as many bag of words as you need. Each bag of words has to be comma-separated.
In the example above, we have added an expansion from the reference term “sport” to the terms “fitness”, “gym” and “running”.
Updating a Thesaurus
You can edit a previously created thesaurus and add or remove some elements (a new synonym list or a new expansion).
Removing a Thesaurus
You can remove a previously created thesaurus from the grid or by clicking the Delete Thesaurus button on the Thesaurus edit page.
How does it works ?
Given the 2 precedent examples, someone searching for “women sport pants” on the website will trigger the following search queries :
- women sport pants (the base query)
- woman sport pants (based on the women/woman synonym)
- women fitness pants (based on the expansion on “sport”)
- women gym pants (based on the expansion on “sport”)
- women running pants (based on the expansion on “sport”)
- woman fitness pants (based on the women/woman synonym and the expansion on “sport”)
- woman gym pants (based on the women/woman synonym and the expansion on “sport”)
- woman running pants (based on the women/woman synonym and the expansion on “sport”)
The generated “extended queries” will be weighted according to the Thesaurus configuration
NB : Technically speaking, it will only generate one query to the engine, with a boolean structure.