Sets the sorting order with a list of criteria of type facet or facet,order :
When afs:sort is omitted, replies are sorted according to full-text search relevance.
The following built-in facets are available:
Note that some built-in facets have to be activated in the PaF configuration, otherwise they are not available at query time. For more information , see Built-in Facets topic of the AFS Configuration Guide.
In addition, the following pseudo facets are available:
They are called pseudo facets because they are not specific to each document.
When two replies are found to be equal once every criterion has been evaluated, the replies are sorted by descending docId (meaning that the newest document appears first).
Optional. It can be used several times, in which case the sorting criteria are evaluated in order in an and fashion.
Sort by built-in relevance facet, then by user-specific "price" facet starting with the lowest values:
afs:sort=afs:relevance,DESC and price,ASC
Focus on afs:sort=fieldMatch vs. afs:ftsMatch=field.
Example: a bookshop.
Search for "le petit prince" with afs:ftsMatch=field returns only one book: "Le petit prince"
Search for "le petit prince" with afs:sort=fieldMatch returns many books: "le petit prince" is first, then "le petit prince II", "analyse du petit prince", ...