Custom sort criteria example - Fluid Topics - 3.10

Fluid Topics Configuration and Administration Guide

Category
Reference Guides
Audience
public
Version
3.10

For this example, the following document and topics are available on the portal:

Fluid Topics release notes
├── Fluid Topics v1.0.0
├── Fluid Topics v1.1.0
├── Fluid Topics v1.1.1
├── Fluid Topics v1.2.0
└── Fluid Topics v1.10.0

When applying the default sort, the document and its topics are ordered in the following way on the Search page:

Fluid Topics release notes
Fluid Topics v1.0.0
Fluid Topics v1.1.0
Fluid Topics v1.1.1
Fluid Topics v1.10.0
Fluid Topics v1.2.0

Note the following details:

  • Version 1.10.0 is ranked before 1.2.0 because 1 is ranked before 2 in alphanumerical order
  • The default sort ranks documents first.

It is possible to display topics first by using the following custom sort criteria: ft:isPublication,ASC,ALPHA.

Topics are listed first because ft:isPublication is a boolean parameter, and Fluid Topics ranks false first.

The document and its topics are now ordered as follows:

Fluid Topics v1.0.0
Fluid Topics v1.1.0
Fluid Topics v1.1.1
Fluid Topics v1.10.0
Fluid Topics v1.2.0
Fluid Topics release notes

To put topics first and solve the version number issue, use the following custom sort criteria: ft:isPublication,ASC,ALPHA;ft:title,ASC,NATURAL.

The version numbers are now correctly ordered:

Fluid Topics v1.0.0
Fluid Topics v1.1.0
Fluid Topics v1.1.1
Fluid Topics v1.2.0
Fluid Topics v1.10.0
Fluid Topics release notes