
In the **Synonyms** section, you can add and manage word substitutes for your search index. Synonyms expand search results so that customers find what they're looking for even when they use different terminology than what appears in your product catalog.

Synonyms can be added manually, imported from a CSV file, or proposed automatically by AI agents that analyze search patterns and product data.


<div class="admonition admonition-tip"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg></div><div class="admonition-body"><div class="admonition-content">

You can also manage typos through a dedicated [Handling typos and missing words](/docs/ai-hub/ai-search/define-typos-handling) article and [query rules](/docs/ai-hub/ai-search/query-rules).

</div></div></div>


## Synonym types
---
Each synonym pair works in one of two directions:

- **One-way synonyms** work in one direction only. For example, if "TV" is the source term and "television" is its synonym, searching for "TV" returns television products — but searching for "television" does not return TV results.
- **Two-way synonyms** work in both directions. Terms are treated as fully interchangeable and grouped together. For example, if "smartphone", "phone", and "mobile" are two-way synonyms, searching for any of these terms returns the same results.

## Synonym states
---
Every synonym has a state that indicates its origin and whether it requires your attention:

| State | Description |
|---|---|
| **Accepted** | An active synonym — either one you created manually or an AI proposal you approved. |
| **Rejected** | An AI proposal you dismissed. |

## How synonyms are created
---
Synonyms come from three sources:

- **Manual** — You enter synonyms one by one directly in the interface.
- **CSV import** — You upload a file containing multiple synonyms at once.
- **AI agents** — The system automatically proposes synonyms and submits them as Suggested for your review and manual activation. These synonyms are based on::
  - **User activity** — The agent uses time-window analysis to detect patterns where users search for one term, then quickly search for a related term within the same session, indicating a synonym relationship.
  - **Product catalog data** — For indexes with no search history yet, the agent can analyze your product catalog to generate relevant synonym proposals ([cold start option](#initial-synonym-generation-cold-start)).

## Requirements
---
For imported synonyms:
- The file must be encoded in UTF-8; UTF-8 BOM is not supported.
- Use commas as the word separator.

For synonyms proposed by AI agents:
You must have a history of [`item.search` events](/docs/assets/events/event-reference/search#itemsearch) with the `searchType` parameter set to `full-text-search`. The agent analyzes search reformulations — sessions where a user searched for one term and then quickly searched for a related term — so events from such searches must be collected. This requirement does not apply to the cold start option.


## Adding synonyms manually


<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

Changes to synonyms are reflected within 30 minutes to several hours, depending on the size of the index.

</div></div></div>


### Procedure

1. Go to **AI Hub > Indexes**.
2. In the list, click the index to which you want to add synonyms.
3. Under the name of the index, select the **Synonyms** tab.
4. Click **Add synonym**.
5. From the dropdown list, select  **Add synonym**.
1. From the left dropdown list, define the type of the synonym:
    - **One way**
        1. In the **Word** field, enter the source term.
        2. In the **Synonym** field, enter the synonym for the word.
    - **Two ways**
        1. In the **Synonyms** field, enter the terms that are interchangeable with each other.
2. To add more synonyms, click **Add synonym**.
3. To save the list, click **Add**.  
    **Result**: The synonyms will be added and they will be assigned the **Accepted** status.  

## Adding synonyms by CSV import

1. Go to **AI Hub > Indexes**.
2. In the list, click the index to which you want to add synonyms.
3. Under the name of the index, select the **Synonyms** tab.
4. Click **Add synonym**.
5. From the dropdown list, select **Import CSV**.
1. Choose the import method:
    - **Replace** — Deletes all existing synonyms added through the import and saves the ones from the file.
    - **Add** — Adds the synonyms from the file to the existing list.
2. Upload a CSV file.  
    - The imported synonyms will get the **Accepted** status.  
    - See [example CSV files](#example-csv-files).

### Example CSV files
---

#### One-way synonyms only

<pre><code class="language-plaintext">word,synonyms,type
phone,smartphone,oneway</code></pre>


If a customer enters `phone`, results include smartphones. Searching for `smartphone` returns only smartphones — not phones.

#### Two-way synonyms only

<pre><code class="language-plaintext">word,synonyms,type
,"computer,PC",synonyms</code></pre>



<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

The first column is empty; all synonyms are in the second column.

</div></div></div>


The search engine returns the same results for `computer` and `PC`.

#### One-way and two-way synonyms in one file


<pre><code class="language-plaintext">word,synonyms,type
phone,smartphone,oneway
,"computer,PC",synonyms</code></pre>


- The first row defines a one-way synonym: searching for `phone` returns smartphones, but not the reverse.
- The second row defines two-way synonyms (first column is empty): `computer` and `PC` return the same results.


## Adding synonyms by Synonyms Agent


### Enable the Synonyms Agent
---
Before AI agents can propose synonyms, you must enable the Synonyms Agent in the index settings.


<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

Enabling the Synonyms Agent may generate additional costs related to LLM usage. AI-generated suggestions may occasionally be inaccurate.

</div></div></div>


#### Procedure

1. Go to **AI Hub > Indexes**.
2. Click the index you want to configure.
3. Under the name of the index, select the **Settings** tab.
4. Find the **Synonyms Agent** section.  
    <figure><img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/ai-hub/_gfx/synonyms-agent-tab.png" class="large" alt="Synonyms Agent settings section showing the agent in a disabled state"><figcaption>Synonyms Agent settings section showing the agent in a disabled state</figcaption></figure>
5. Toggle the switch from **Disabled** to **Enabled**. 
    **Result**:
    <figure><img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/ai-hub/_gfx/synonyms-agent-enabled.png" class="large" alt="Synonyms Agent settings section showing the agent in an enabled state"><figcaption>Synonyms Agent settings section showing the agent in an enabled state</figcaption></figure>  
6. In the **Suggestion frequency** section, select how often the agent proposes new synonyms:  
    - **Monthly** — Uses more data for higher confidence, but learns more slowly (every 30 days).
    - **Weekly** — Faster training, lower confidence.
7. Click **Apply**.  
    **Result**: The agent runs at the selected frequency and proposes synonyms in the **Synonyms** tab. When the [synonyms suggestions will be ready for review](#review-ai-proposed-synonyms), a notification banner will appear on the list of synonyms.  


   <div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

   If you disable the agent, it is queued for shutdown and stops running at the next scheduled time.

   </div></div></div>


### Initial synonym generation (Cold start)

For new indexes with no search history, you can trigger a one-time synonym generation based on your product catalog data.


<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

Cold start is a single-use operation. Once it completes, it cannot be run again for that index (even after you disable and enable the Synonyms Agent).

</div></div></div>


To run the cold start:

1. In the **Synonyms Agent** section, find **Initial synonym generation (Cold start)**.
2. Toggle the switch to enable it.
3. Click **Apply**.

 
### Review AI-proposed synonyms
---
AI agents run on a recurring schedule and propose new synonyms based on search behavior and catalog data.  When the synonyms suggestions are ready for review, a notification banner appears on the list of synonyms.

#### Procedure

1. Go to **AI Hub > Indexes**.
2. Click the index you want to manage.
3. Select the **Synonyms** tab.  
    **Result**: A notification banner is displayed above the synonym list.  
    <figure><img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/ai-hub/_gfx/new-synonyms-suggestions-banner.png" class="large" alt="Synonyms tab with a notification banner informing that the Synonym Agent has generated new synonym suggestions and prompting to review and approve them"><figcaption>Synonyms tab with a notification banner informing that the Synonym Agent has generated new synonym suggestions and prompting to review and approve them</figcaption></figure>  
4. On the notification banner, click **Review suggestions**.  
    **Result**: A pop-up appears.  
    <figure><img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/ai-hub/_gfx/suggested-synonyms.png" class="large" alt="Synonym Agent pop-up showing the Suggested tab with a list of AI-proposed one-way synonyms, each with a confidence score and options to accept, reject, or edit"><figcaption>Synonym Agent pop-up showing the Suggested tab with a list of AI-proposed one-way synonyms, each with a confidence score and options to accept, reject, or edit</figcaption></figure>   

5. Review each proposal and decide:  

    
   <div class="admonition admonition-warning"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z" /></svg></div><div class="admonition-body"><div class="admonition-content">

   Accepting and rejecting synonyms is irreversible.

   </div></div></div>


    - Accept the synonym.
    - Reject to dismiss the proposal.
    - Edit the proposal.  
        When you edit the proposal, you save and accept the edited proposal, this action is irreversible. 


        
Accepted synonyms become active with the **Accepted** state. Rejected proposals are retained with the **Rejected** state for reference. 

