Commerce fields
Commerce fields
A field is an index-wide data container that holds specific information about each individual item whose corresponding source mappings include rules to populate this field.
Each Coveo organization automatically comes with a set of default fields populated using standard metadata. You can also create custom fields that are filled with the content or metadata of your choice when adding mappings for sources (see Add or edit a field). Fields can be leveraged in a search interface to optimize the user experience by displaying relevant information about your products and providing facet options.
Standard commerce fields
To ensure optimal performance of your Coveo for Commerce implementation, it’s essential to populate the Coveo for Commerce standard fields. These commerce-related fields store vital metadata on your products, such as price, name, and description.
The purpose for having a standardized set of product data is so that you can map product information with user data for Coveo Machine Learning models. As a result, models can enhance content personalization for your customers.
The word standard is important here, as these fields are the same across all Coveo organizations and expect similar values to be stored in them. To get a holistic view of fields that aren’t specific to commerce, see About fields.
When you create a Catalog source, standard fields are automatically generated in your Coveo organization.
You can access them by navigating to the Fields (platform-ca | platform-eu | platform-au) page of the Coveo Administration Console.
Standard commerce-related fields are prefixed with ec_
(e.g., ec_price
).
These fields need to be populated with relevant product metadata through source mappings and during the catalog creation process.
See Standard commerce fields mapping for more information on how to map these fields.
See the list of all standard fields section for the exhaustive list of standard commerce fields.
Standard fields reference
|
Note
The standard fields listed as "High" importance in the table are the most critical ones. |
Display name | Index field name | Importance | Description | Format |
---|---|---|---|---|
Name[1] |
|
High |
Name of the product |
String |
Description[1] |
|
High |
Description of the product |
String |
Brand |
|
High |
Product brand |
String |
Category |
|
High |
Category of the product (e.g., Electronics; Electronics|Televisions; Electronics|Televisions|4K Televisions) |
String |
Price |
|
High |
Base price of the product or variant |
Float |
Item Group ID |
|
High |
For product grouping or bundling |
String |
Short Description |
|
Low |
Short description of the product |
String |
Image |
|
Low |
Lower resolution product image(s) used for faster page load time (URL format) |
Array |
Images Gallery |
|
Low |
Collection of high resolution product images used to view product details (URL format) |
Array |
Special Price |
|
Low |
Promotional price of product or variant |
Float |
In Stock |
|
Low |
Availability of the product (i.e., whether the product is in stock) |
Boolean |
COGS |
|
Low |
To calculate the product margin |
Float |
Ratings |
|
Low |
A rating based system from 0-10 |
String |
Create additional commerce fields
You can also add your own fields to provide end users with additional information from your products. These additional fields also let users target their desired content (see Field uses).
The mapping of your metadata has to be done through the source mappings. See Additional fields mapping for instructions on how to map your additional fields to your metadata.
|
|
You can create your fields manually through the Administration Console (platform-ca | platform-eu | platform-au), or programmatically through the Fields API.
|
Leading practice
In your catalog content, avoid using the same field name that you intend to use as facets, on different types of items.
For example, if you’re defining the |
Commerce structure fields
In addition to the fields you will want to create to leverage product metadata such as price, color, and description within your commerce interfaces (search and listing pages, recommendation interfaces, etc.), you must create a set of string type fields that you will use to configure your Coveo commerce catalog:
Suggested field name | Field intent | Field settings to enable |
---|---|---|
|
Uniquely identifies each product. |
|
|
Uniquely identifies each variant. |
|
|
Uniquely identifies each availability channel. |
|
|
Identifies the list of available product/variants in a given availability channel. |
|
Note that you must ensure that these fields are mapped to the appropriate metadata in your source. See Structure fields mapping for instructions on how to map your structure fields to your metadata.
If your catalog only has products that don’t have variants, or if the products in your catalog are offered through a single availability channel (e.g., a single store or product list), you won’t need to configure all the fields listed in the table. Minimally, however, you will always have to configure a field that uniquely identifies products in your catalog.
|
If your catalog structure contains many items and requires availability channels, use the same field name on both the variant and the availability channel to store the SKU array. The JSON object below demonstrates this by using the
This will improve the performance of your index. |