## Related terms

- event
- import
- promotions
- ai\-recommendation
- catalog

See the [glossary](/glossary.md) for definitions.

---

# Creating catalogs


You can create catalogs and upload there a CSV file with data that can be used to further actions in the application. 

You can also upload JSON and XML files to catalogs through API or by importing.
- [Uploading JSON through API](https://hub.synerise.com/api-reference/data-management#tag/Catalogs/operation/addItemsBatch)
- [Requirements for importing JSON and XML files](/docs/assets/catalogs/creating-catalogs#requirements)
- [Importing product feed to a catalog](/use-cases/import-product-feed-to-catalog) 


<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">

We strongly discourage you from storing personal data in catalogs. Instead, store this information only in **Behavioral Data Hub**.

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


## Requirements
---

- Permissions that allow access to Catalogs section and adding new catalogs. 
- **CSV files only**:
    - Values in one column must be unique because the column itself serves as the key. Otherwise, the values may be overwritten. 
    - Avoid spaces and special characters in the column names and the name of the file.
    - A file can contain up to 200 000 records.

## Creating a catalog
---

<figure>
<img src="/api/docs/image/4376cf0d6777ed14cb3810d274ef0bd1f5e68491/docs/assets/_gfx/creating-catalogs.png" alt="Creating catalogs procedure" class="full">
<figcaption>A list of catalogs</figcaption>
</figure>

1. Go to <img src="/api/docs/image/4376cf0d6777ed14cb3810d274ef0bd1f5e68491/docs/assets/_gfx/assets-icon.png" alt="Data Modeling Hub icon" class="icon"> **Data Modeling Hub > Catalogs > New Catalog**.  
  **Result**: A pop-up opens.
2. Enter the name of the catalog.  
   You can use the following characters: `a-z`; `A-Z`; `0-9`, `-`  
  
   <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">

   Spaces (` `) are allowed, but not recommended. Catalogs with spaces in their names can't be referenced with [inserts](/developers/inserts/insert-usage#catalogs).

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

3. Confirm creating the catalog by clicking **Apply**.  
  **Result**: A catalog appears on the list. Its position on the list is defined by alphabetic order (the list is arranged from Z-A).

## Importing data into the catalog
---

To learn how to import data to a catalog, see [this article](/docs/assets/imports/importing-data-to-catalogs).  

Records imported into a catalog will be available on the **Records list** tab.  

<figure><img src="/api/docs/image/4376cf0d6777ed14cb3810d274ef0bd1f5e68491/docs/assets/_gfx/catalogs-after-importing.png" class="large" alt="The preview of a catalog"><figcaption>The preview of a catalog after import of records</figcaption></figure>

## Enriching events with data from catalog
---
You can use the data in catalog parameters (columns) to enrich event information. This takes place when the value of a selected event parameter matches the value of the primary key selected in the catalogs's event enrichment settings.

You can find more information about enriching event with catalog data and its limits in the ["Enriching events with data from catalogs"](/docs/assets/events/adding-event-parameters#enriching-events-with-data-from-catalogs) section of the ["Event parameters and enrichment"](/docs/assets/events/adding-event-parameters) document.


1. Go to the **Settings** tab.  
2. On the **Event enrichment** section, click **Show**.  
  **Result**:  
    <figure><img src="/api/docs/image/4376cf0d6777ed14cb3810d274ef0bd1f5e68491/docs/assets/_gfx/event-enrichment-catalog.png" class="large" alt="The Event enrichment section"><figcaption>The Event enrichment section</figcaption></figure>  

3. In the **Primary key name** field, enter the name of the column whose values need to match the value of the event parameter you will select later.
4. In the **Primary key description** field, enter the description for the primary key which makes it easy for you and other workspace users to identify the key.
5. To select the first event for enrichment, in the **Enriched events** section, click **Enrich first event**.  
  If it's not your first event, click **Enrich an event** button.  
  **Result**: A pop-up appears.  
6. From the **Event name** dropdown list, select the event you want to enrich.  
7. Follow the instructions from the ["Procedure" section the in Event parameters and enrichment article](/docs/assets/events/adding-event-parameters#procedure), step 5.

## Indexing catalogs
---
Indexing a catalog lets you use catalog columns as attributes while creating filter conditions for [promotions](/docs/ai-hub/promotions/managing-promotions#filtering-promotions) and previewing AI recommendations (if the catalog was used for [AI Engine Configuration](/docs/settings/configuration/ai-engine-configuration)). You can select up to 5 columns.

### For new catalogs

1. Go to the **Settings** tab.  
2. On the **Indexing attributes** section, click **Show**.  
  **Result**:  

    <figure><img src="/api/docs/image/4376cf0d6777ed14cb3810d274ef0bd1f5e68491/docs/assets/_gfx/indexing-attributes.png" class="large" alt="The Indexing attributes section"><figcaption>The Indexing attributes section</figcaption></figure>   

3. Enable the **Index this catalog** option.    
4. Click **Select attributes**.  
  **Result**: A pop-up appears.
5. To select the attributes for indexing, next to the parameter name, select the checkbox.  
   You can select up to 5 attributes.  
  
   <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">

   The selection of attributes can only be changed by removing indexing and setting it up again.

   </div></div></div>
  
6. Confirm your choice by clicking **Apply** on the pop-up.    
  **Result**: The attributes are added to the list.  
  Each attribute has an automatically detected data type. This is only used by RSQL filters and affects operator availability. You can change the type manually in the next step.  
7. Click **Apply** and **Yes**.  
   **Result**: Indexing begins. A list of attributes and their types opens.
8. If you want to change the data type of an attribute:
   1. Click the current type and select another one from the dropdown list.
   2. Click **Confirm types**.

### For old catalogs

Catalogs created before the 27th of May, 2025 are considered old.   
All columns in the catalog are indexed automatically by default. To change indexing settings (for example, change scope of indexed columns), you must [remove the index from a catalog](#removing-indexing) and re-enable indexing by following the procedure [for new catalogs](#for-new-catalogs).  

<figure><img src="/api/docs/image/4376cf0d6777ed14cb3810d274ef0bd1f5e68491/docs/assets/_gfx/old-indexing-rules.png" class="large" alt="Information that a catalog uses old indexing"><figcaption>Information that a catalog uses old indexing</figcaption></figure>

## Check dependencies

You can check where the indexed columns are used in promotion filters. Always do this before making changes to the scope of indexing settings or removing it from the catalog.  

1. Go to the **Settings** tab.  
2. On the **Indexing attributes** section, click **Show**.  
3. Click **Review related promotions**.


## Removing indexing

1. Go to the **Settings** tab.  
2. On the **Indexing attributes** section, click **Show**.  
3. Under the list of attributes, click **Review related promotions** and check which promotions rely on the current indexing.  
  
   <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">

   Before removing the index from a catalog, ensure that the filters in those promotions can be removed safely, without affecting current customer-visible content or integrations in an unplanned way.

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

4. At the bottom of the section, click **Remove the index for this catalog**.  
  **Result**: A pop-up appears.
5. Confirm index removal by clicking **Remove the index from this catalog**. 

## Creating catalog filters

You can filter the contents of a catalog by their [indexing attributes](#indexing-catalogs). Such a filter can be saved to use in promotions.


<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 create a filter directly in the promotion settings. Such a filter is only available in that promotion.

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


1. Go to <img src="/api/docs/image/4376cf0d6777ed14cb3810d274ef0bd1f5e68491/docs/assets/_gfx/assets-icon.png" alt="Data Modeling Hub icon" class="icon"> **Data Modeling Hub > Catalogs**.  
2. Open the catalog where you want to add the filter.  
  **Result**: The list of items opens.
3. In the upper-right, click **Filter**.  
   **Result**: The filter builder opens.
4. Build the filter in one of these ways:
   - Use the builder.
   - Use the query editor. To access the query editor, build any filter, click **Apply**, and change to **RSQL**.  
     To learn more about filters, see [RSQL in Synerise](/docs/assets/rsql).
5. To save the filter for later use:
   1. Click **Save filter**.
   2. Enter the name and click **Save**.  
      **Result**: You can open the filter from the catalog view by clicking the folder icon next to **Filter**. You can also use the saved filter when configuring a promotion.