Loading TOC...

cts.documentOrder

cts.documentOrder(
   [$options as String[]]
) as cts.order

Summary

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

Parameters
$options Options.

Options include:

"descending"
Results should be returned in descending order of document.
"ascending"
Results should be returned in ascending order of document.

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.documentOrder("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.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.