xdmp:query-partitions( $query as cts:query ) as xs:unsigned*
This function returns the partition numbers of the partitions that the specified query will be searched on.
Parameters | |
---|---|
query | A query. |
xdmp:query-partitions( cts:element-range-query(xs:QName("create-time"), ">=", xs:yearMonthDuration("P1Y")) ) => 1
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.