Create Sorts

The Sorts tab in Adaptive Search allows you to create a set of sorts for your search profiles.

Prerequisites

  • A category aware profile has already been created and selected in the Adaptive Search Perspective.
  • A couple of default sorts are already present on the Sorts list.

Context

Promoted, excluded and default sorts are created in the same way. As an example you are going to create a promoted sort.

Procedure

  1. Navigate to the Global category in the Categories tree.
  2. Go to Sorts tab.
  3. In the Promoted section, click Create new item.

    Fill in the following fields:

    Item Essential Description
    1 Code an unique code for your sort. The code is displayed on the list of the sorts
    Name a chosen name for the sort. The name will be displayed on the storefront.
    Priority the priority governing the order of the sorts. Visible only if the sort is set as default.
    Sort Expressions a list of sort expressions used for sorting. See Step 4 for instructions on create a sort expression.
    2 Show on Top if set to true, the promoted items are displayed at the top of the list, regardless of sorting.
    Highlight Promoted Items if set to true, promoted items are highlighted.
  4. Click Create new Sort Expression
    Fill in the following fields:
    • Expression: the indexed property you want to create the sort for.
    • Order: sorting order, ascending or descending.

    You can enter more than one field into the expression and it will work in the following way: If you add the name to the list first, and then for example the price, the items will be sorted by the name first and in case two or more items have the same name, they will be sorted by price.

  5. Click Done to finish.

    The sort is now added to the list. It is listed by code, but the name is displayed on the storefront. You can edit it using the menu on the right.

  6. If you want to change the order of the newly created sorts, simply drag and drop them.
  7. Verify if the new sort is working by using the drop down above the search results list.
  8. Go to the storefront and check if your sort is there.

Results

You have created a new sort. For managing options see Manage Sorts.