Creating a Custom Alfresco One 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:
-
Documents
-
Records
-
AlfrescoFolders
-
Spaces
-
Sites
-
Folders
-
Categories
-
To create a custom Alfresco One mapping file
-
Using a text editor, create an XML file that respects the Alfresco One 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.Alfrescov2.config where by default [Index_Path] = C:\CES7).
-
Specify the mapping file path and filename in the Alfresco One source (see Configuring and Indexing an Alfresco One Source).
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:
<Mappings>
<Version>1</Version>
<CommonMapping>
</CommonMapping>
<Mapping type="F:dl:dataList">
<Title>%[cmis:description]</Title>
</Mapping>
<Mapping type="D:lnk:link">
<Title>%[lnk:description]</Title>
</Mapping>
<Mapping type="D:dl:todoList">
<Title>%[dl:todoTitle]</Title>
</Mapping>
<Mapping type="D:dl:contact">
<Title>%[dl:contactFirstName] %[dl:contactLastName]</Title>
</Mapping>
<DefaultMapping>
</DefaultMapping>
</Mappings>