Product DocsMenu

Creating a Custom Alfresco One Mapping File

The Alfresco One mapping file exactly determines which types of Alfresco One documents are indexed and where this information is added to the Coveo unified index.

The default mapping file is embedded within the connector and is automatically used when no mapping file is specified in the source.

The default mapping file allows to index the following Alfresco document types:

  • Documents

  • Records

  • AlfrescoFolders

    • Spaces

    • Sites

    • Folders

    • Categories

To create a custom Alfresco One mapping file

  1. Using a text editor, create an XML file that respects the Alfresco One mapping file format (see the Mapping File Format section).

  2. Save the file on the Coveo server (recommended folder and filename: [Index_Path]\Config\Coveo.CES.CustomCrawlers.Alfrescov2.config where by default [Index_Path] = C:\CES7).

  3. Specify the mapping file path and filename in the Alfresco One source (see Configuring and Indexing an Alfresco One Source).

Mapping File Format

The mapping file is an XML file that contains various sections and subsections. The root node is <Mappings>. It contains various <CommonMapping> nodes, each defining one type to be indexed.

The first <DefaultMapping> node contains mappings that apply to all entities defined in the mapping file.

The following example contains mappings that add a descriptive title for data lists, todo lists and link items:

  <Mapping type="F:dl:dataList">
  <Mapping type="D:lnk:link">
  <Mapping type="D:dl:todoList">
  <Mapping type="D:dl:contact">
                <Title>%[dl:contactFirstName] %[dl:contactLastName]</Title>
People who viewed this topic also viewed