Creating a Custom Alfresco Mapping File
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:
To create a custom Alfresco mapping file
Using a text editor, create an XML file that respect the Alfresco mapping file format (see the Mapping File Format section).
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).
Specify the mapping file path and filename in the Alfresco source (see Configuring and Indexing an Alfresco Source).
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>