Field Mapping

This transformer takes the given result fields and maps the field names to the given new names. This stage is needed to harmonize heterogeneous search index definitions.

image-20240811-161221.png

The configuration parameter is

  1. Field Mapping as JSON: The configuration is given as a JSON for convenience reasons. The JSON format is defined as “sourceField”:”targetField”. A mapping will remove the sourceField afterwards.

{
   "mappings":{
      "path":"url",
      "displayAuthor":"authors",
      "contentSource":"rootItemTitle",
      "lastModifiedTime":"lastModifiedDate",
      "createdBy":"creators",
      "created":"createdDate",
      "fileExtension":"fileExtension",
      "siteTitle":"parentItemTitle",
      "serverRedirectedEmbedURL":"previewImageUrl",
      "spWebUrl":"parentItemUrl",
      "serverRedirectedURL":"interactivePreviewUrl",
      "fileType":"itemType"
   }
}