Source Item Types

In a Coveo Cloud source, item types define the nature of each item, i.e., what kind of content it represents.

Knowing what item types your source contains allows you to apply indexing pipeline extensions (IPE) to specific items, thus targeting only certain content types (see Applying an Extension to a Source).

Depending on the source, the item type is available as a value of the objecttype, mappingtype, documenttype, or filetype standard field, or even of more than one of these fields within a single source. The value of these standard fields is typically set at the indexing pipeline Crawling stage, when applicable depending on the source, so not all items of all sources necessarily have values for these four fields.

A Salesforce source can contain Contact, Lead, Case, or Attachment item types. These item types correspond to Salesforce object types. These values are available as values of the objecttype field. The source can also contain pdf or xls (spreadsheet) files (technically stored in Attachment objects) that are also item types which values are available from the filetype field.

Finding the Source Item Type Values

When you create a condition for a Coveo Cloud indexing pipeline process such as a mapping or an extension, you need to know what item type value to enter for the condition.

You may want to apply a mapping and an extension rule to the same specific item type. In that case, when you add the item type in either the Edit Source Extensions and Edit the Mappings of a Source panels of the Administration Console, you must add the item type in the other panel as well. In other words, the item type you added in the first panel won’t be displayed in the other one.

You must use the value found on items from the most appropriate of the objecttype, mappingtype, documenttype, or filetype fields.

At the Processing stage of the indexing pipeline, the Coveo Cloud converters search for mappings to apply to specific item types. While doing so, the converters look for the following item fields to find a match with specific mappings defined in the related source in this order:

  1. filetype

  2. documenttype

  3. mappingtype

  4. objecttype

If there’s more than one specific mapping defined in the source, Coveo Cloud converters select the first one they find.

To find the source item type values

In the Coveo Cloud Administration Console, on the Content Browser page, you can inspect field values of individual items by looking at item Properties (see Review Item Properties).

You can also use facets on these fields to see what are the available values for each field and how many items have each value, but be careful, the facet item display name may be different from the actual field value.

A File Type facet may show beautified values of the actual filetype field value, such as replacing pdf with PDF file. The source item type value is still pdf.

SourceItemType-FileTypeFacet1

Recommended Articles