Product DocsMenu

Creating a Custom Alfresco Mapping File

The Alfresco mapping file exactly determines which types of Alfresco documents are indexed and where this information is added in 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

To create a custom Alfresco mapping file

  1. Using a text editor, create an XML file that respect the Alfresco 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.Alfresco.config where by default [Index_Path] = C:\CES6).

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

Mapping File Format

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

The first <Mapping> node for type=“default”, showed in the following mapping file excerpt, contains mappings that apply to all entities defined in the mapping file.

<Mapping type="default"> 
  <Fields> 
    <CustomFields> 
      <CustomField name="sysAuthor">%[author_name]</CustomField> 
    </CustomFields> 
  </Fields> 
</Mapping>