Configure sort order in clustering - Fluid Topics - Latest

Fluid Topics Designer Guide

Category
Reference Guides
Audience
public
Version
Latest

When clustering documents, it is possible to configure the sort order of variants based on their shared metadata key.

In this use case, documents are available in two versions: "version": "V1" and "version": "V2".

Follow the procedure below to display V2 documents by default:

Add metadata to the Reader page

  1. Go to the Administration menu, select the Design section, then the Reader tab.
  2. Open the desired Topic template.
  3. Add the version metadata using the Topic metadata component. Make sure the "Used for clustering results" option is selected.
  4. Select Save.

Add metadata to the Search page

  1. Go to the Administration menu, go to the the Design section and select the Search results tab.
  2. Open the desired Search page.
  3. Select the Search results component and open its settings.
  4. In the "Sort clustered results by metadata" field, add the metadata key used for clustering. In this case version.
  5. Select Save.

Configure metadata

  1. In the Administration menu, go to the Portal section and select the Metadata tab.
  2. Select the version metadata and select the cogwheel to configure the metadata key.
  3. Set the Sort method to Version, and the Sort order to Descending.
  4. Select Save.

Fluid Topics **Search results** page displaying version V2 as the selected default version, with V1 available in the version dropdown menu.