Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Overview

In some rare cases, it is needed to override part of the data that is associated to the search results. For these case there is a custom labels mapping structure that enhances the data.

Goal

This document provides insight on React powered custom mappings feature.

Prerequisite

Info

Configured Hawksearch box or results widget using the React template

https://hawksearch.atlassian.net/wiki/spaces/CON/pages/605618600/Configuring%2BHawksearch%2Bbox%2BWidget

Enable React for Hawksearch box widget

Configuring 'Hawksearch results' Widget

Enable React for Hawksearch results widget

Facets localization

The label mappings are realized the same way as the translations. An array with the label values is positioned in each of the widget templates. In this case however, the array should be extended with any values that are specific to the indexed data. The most common case is mapping the Sitefinity content type value to a human readable label in the facets and selections header.

...