Commerce catalog entity
Commerce catalog entity
This is for:
System AdministratorThe catalog entity is at the core of a Coveo for Commerce implementation. It establishes relationships between the catalog objects. A catalog entity also lets you standardize your commerce fields to ensure data reliability for Coveo Machine Learning (Coveo ML) models.
Creating a catalog entity is a requirement for enabling Coveo’s machine learning capabilities, maintaining your catalog data, and analyzing usage analytics data through advanced commerce reporting.
Add a catalog entity
There’s a 1:1 relationship between a catalog entity and a product source.
This means that each source you created to hold your products must have its own catalog entity.
However, sources that contain only items of the availability
object type can be shared across multiple catalog entities.
To create a catalog entity:
-
On the Catalogs (platform-ca | platform-eu | platform-au) page of the Coveo Administration Console, click Add Catalog.
-
Enter a suitable Name for your catalog entity (for example,
Barca_Sports_en_US
). -
Under Object Types, select the catalog objects your catalog entity should include:
-
If your source only contains catalog product data objects (without items of the variant or availability object types), continue to step 4. Note that you can’t change the Object Types for a catalog entity once it’s created.
-
If your source contains items of the
variant
object type to handle different variations of a product, select Variants. Note that if you’re solely relying on product groupings to handle different variations of a product, you don’t need to select Variants. -
If your source contains items of the
availability
object type to control whether a product or variant is available in a specific channel (for example, a store or a warehouse), select the Availability checkbox.
-
-
Under Catalog Content, select the source that contains your catalog data objects. The source you select can only be used with a single catalog entity.
-
Depending on the way you’ve structured your data, your items of the
availability
object type might be in another source. In this case, from the dropdown menu, select that source. Otherwise, clear the Use a different source for availabilities checkbox. -
To continue selecting a configuration for your catalog, click Next.
NoteIf you need to change the catalog structure, you’ll need to create a new catalog entity. For example, your catalog entity only had items of the Product catalog object, and now you want to add variants or availability channels.
Catalog configuration
A catalog configuration establishes the relationship between the different catalog objects. This configuration is re-usable across multiple catalog entities.
When configuring a catalog entity, you can either select an existing catalog configuration or create a new one.
To create a new catalog configuration:
-
Click Create a New Configuration.
-
Enter a suitable Configuration name, and then click Next.
-
Under Define your products, select the
objecttype
field value that identifies items as products in your catalog data (for example,Product
).-
Under Select your Product ID metadata, select the metadata key that uniquely identifies each distinct product in your catalog data. Make sure to map this metadata key to the
permanentid
field in your source. See Mapping topermanentid
for details.
-
-
If your source contains items of the
Variant
object type, under Define your variants, select theobjecttype
field value that identifies items as variants in your catalog data (for example,Variant
).-
Under Select your Variant ID metadata, select the metadata key that uniquely identifies each distinct variant in your catalog data.
-
-
Click Next.
-
If your data hierarchy contains items of the
Availability
object type, under Define your availabilities, select theobjecttype
field value that identifies items as availability channels in your catalog data (for example,Availability
).-
Under Select your Availability ID metadata, select the metadata key that uniquely identifies each availability channel in your catalog data.
-
Under Select your Available SKUs metadata, select the multi-value metadata key that lists all sellable items IDs (such as values of
ec_product_id
orec_variant_id
), available from each distinct availability channel (for example,ec_available_items
).
-
-
Click Next.
-
Under Map standard fields to your catalog, map the standard commerce fields to metadata keys from your catalog data. See the Commerce standard fields section for more information on this step.
-
Click Finish.
The catalog entity is now available on the Catalogs (platform-ca | platform-eu | platform-au) page.
Once your catalog entity is created, stream your catalog data into the source once more. This ensures that the catalog entity is properly registered and ensures the proper functioning of Coveo ML models.
If you have the Enterprise edition, group this catalog and your other implementation resources together in a project. See Manage projects. |
Commerce standard fields
In the Map standard fields to your catalog step of the catalog configuration, you’ll be asked to map standard commerce fields to metadata from your index. This step is critical for:
-
Making sure that Coveo Personalization-as-you-go (PAYG) can build a product vector space that represents your content.
-
Tracking usage analytics events using the Event Protocol:
This ensures that commerce events are enriched with the required catalog data, such as
ec_item_group_id
,ec_category
, andec_brand
.
If you haven’t pushed your commerce data to your source yet, you wouldn’t be able to see your metadata keys in the dropdowns of the Associated Metadata column. However, if you know the nomenclature of the metadata keys you’ll be using, you can write them in the Associated Metadata column.
For example, if you have a metadata key named price
that contains the price of your products, you would need to map the price
metadata key to the ec_price
field.
To map standard fields to your catalog entity, in the Associated Metadata column, select the metadata to associate to commerce standard fields.
This step isn’t to be confused with regular source mapping where you map metadata from your source to Coveo fields. See Map commerce fields for details. |
Edit a catalog entity
You can edit a catalog entity to change its name, the source it uses, the catalog configuration it’s associated with, or the associated facets.
-
On the Catalogs (platform-ca | platform-eu | platform-au) page, click the desired catalog entity, and then click Edit in the Action bar. This will open the Overview tab where you can:
-
Edit the Name.
-
Edit the Description.
-
Edit the Catalog Content, where you can update the source that contains your catalog data. Note that the source you select can only be used with a single catalog entity.
If your catalog entity has availability objects and the way you’ve structured your data has changed, your availability data might now be contained in another source. In this case, select the new source from the dropdown menu. Otherwise, clear the Use a different source for availabilities checkbox.
-
-
If you want to review facet associations for this catalog entity, select the Facet Association tab. For more information, see the Facet Association section.
-
Click Save.
-
When you’re done editing your catalog entity, you must stream your catalog data into the source once more. This ensures that the catalog entity is properly registered and ensures the proper functioning of Coveo ML models.
"Facet Association" tab
Using the Facet Association tab, you can quickly view which facetable field names exist for each catalog object type. The percentage shown represents the ratio of each field by catalog object type. By hovering over the percentage shown, you can see the number of documents that contain the associated field name.
Depending on your specific use case, if the percentages deviate from what you expect, this could be an indication that your data isn’t properly structured. |
In advanced use cases, your data structure may require having the same facetable fields on multiple catalog object types.
For example, you may want to use the same language
field across all your items.
In this case, the value @language
would need to appear on all catalog objects (Product, Variant, and Availability) to return matching results.
To access the Facet Association tab:
-
On the Catalogs (platform-ca | platform-eu | platform-au) page, click the desired catalog entity, and then click Edit in the Action bar.
-
Select the Facet Association tab.
-
Select the desired field, and then click Edit Field on the Action bar.
You’ll be sent to the Content > Fields page. You can edit the string options or advanced settings. For more information, see Add or edit a field.
-
Click Save.
-
When you’re done editing your catalog entity, you must stream your catalog data into the source once more. This ensures that the catalog entity is properly registered and ensures the proper functioning of Coveo ML models.
-
(Optionally) Click Refresh Field Cache in the upper-right corner.
This allows you to instantly update the field values you edited instead of waiting for them to update automatically through the staged refresh, which automatically detects the fields that you can use to generate facets every 15 minutes. The last update time appears at the lower right of the Facet Association tab.
Delete a catalog entity
On the Catalogs (platform-ca | platform-eu | platform-au) page, click the desired catalog entity, and then click Delete in the Action bar.
Edit a commerce catalog configuration
Depending on the structure you’ve created for your commerce environment, you may need to change or delete your configurations.
For example, if you need to redefine which objecttype
field value identifies as a product in your index.
WARNING
Editing a configuration will impact all associated catalog entities. |
-
On the Catalogs (platform-ca | platform-eu | platform-au) page, click Manage Configurations.
-
Click to edit the configuration.
For more information on how to configure a catalog configuration, refer to the Catalog configuration section.
Delete a commerce catalog configuration
Note
You can’t delete a catalog configuration without first deleting the associated catalog entities. Once the associated catalog entity is deleted, the previously associated configuration will remain in your Manage configurations interface until it’s manually deleted. |
-
On the Catalogs (platform-ca | platform-eu | platform-au) page, click Manage Configurations.
-
Click next to the configuration you want to delete.
What’s next?
After configuring your catalog entity, you must associate it with the target tracking ID and locale (see Storefront associations).