Loading TOC...

MarkLogic 10 Product Documentation
cts:score-order

cts:score-order(
   [$options as xs:string*]
) as cts:order

Summary

Creates a score-based ordering clause, for use as an option to cts:search.

Parameters
options Options.

Options include:

"descending"
Return results in descending order of score.
"ascending"
Return results in ascending order of score.

Usage Notes

Only one of "ascending" or "descending" may be specified in the options parameter. If neither "ascending" nor "descending" is specified, then the default is "ascending".

Example

cts:score-order("descending")

(: Returns the specified opaque cts:order object :)

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.