Set Sort By Relevancy Command

Syntax

The syntax for the set sort by relevancy command is:

setSortByRelevancy()

This command takes no arguments.


Function

The set sort by relevancy command removes the sort order, and then it calls clearAllPaging().

Example - Using the set sort by relevancy command

This set sort by relevancy command removes the sort order,
and it resets paging on the facet fields and page number:

  s.pn=3&s.ps=10&s.ff=ContentType,or,3,15&s.sort=PublicationDate:desc&s.cmd=setSortByRelevancy()

Try It