How Search Pipelet Sorting Rules Are Applied

The Search pipelet SortingRuleID parameter specifies the ID of the sorting rule to use to sort the products. You can also use the SortBy1, SortBy1Direction, SortBy2, SortBy2Direction, SortBy3, and SortBy3Direction attributes with explicit sorting attribute steps in sorting rules.

The Search pipelet uses the following rules to order search results:

Example

The following is an example:

  1. A customer searches for jacket on the home page. The search results are sorted by the default rule set for the root category of the site catalog.
  2. The customer refines the search by category Men's. The refined results are sorted by the default rule set for the Men's category.
  3. The customer further refines the search by the Raincoats sub-category. Because no default rule is set for Raincoats, the refined results are sorted by the default rule set for the Men's category.
  4. The customer selects Sort by Price (Low-High) in a sorting options drop down. The sorting rule ID for that sorting option is specified to the Search pipelet. The same refined results are now sorted by the rule with that ID.

Related Links

Searchandising