MarkLogic 12 EA 1 Product Documentation
cts:fitness-order

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

Summary

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

Parameters
options Options.

Options include:

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

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:fitness-order("descending")
(: Returns the specified opaque cts:order object :)
Powered by MarkLogic Server | Terms of Use | Privacy Policy