Documentation
Field Mapping Transformer
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.
The configuration parameter is
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" } }