Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp:range-partition-forests

xdmp:range-partition-forests(
   $value as xs:anyAtomicType
) as xs:unsignedLong*

Summary

Given a value, the function returns a list of forests that have ranges the value falls into. This function reports an error if the context database doesn't have the range assignment policy configured.

Parameters
value The value, for example, xs:date("2013-01-01").

Example

xdmp:range-partition-forests(xs:date("2013-01-01"))
=> 17618760155059123769, 71876760154452113797

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