Find 12.12

# Configure the Result Sort Order

In the Find user interface, users can choose the sort order for their search results. You can configure the options to display, and set a default sort option.

To configure the sort order

1. Go to the Find home directory.

2. Open `config.json` in a text editor.

3. Find the `search` section, or create one if it does not exist.

4. Set the `defaultSortOption` property to the name of the sort option that you want to use by default. You must define this option in the `sortOptions` object.

5. Add a `sortOptions` object to define the list of sort options that you want to make available. You can use your own name for each property in this object. Each entry must have the following properties:

   sort | The IDOL Content component sort option. This property is the value that Find sends to Content in the Sort parameter. For the available options, refer to the IDOL Content Component Reference.
   label | The name to use in the Find user interface for this sort option.

       {
          "search": {
             "defaultSortOption": "bestMatch",
             "sortOptions": {
                "bestMatch": { "sort": "relevance", "label": "by relevance" },
                "newest": { "sort": "date", "label": "by date" }
             }
          }
       }

6. Restart Find to apply your configuration changes.

© Copyright 2015-2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Find 12.12

Topic Title: Configure the Result Sort Order