tieredstorage.partitionForests( database-id as (Number|String), partition-name as String, [include-replicas as Boolean] ) as Sequence
This function returns a sequence of ids for the forests
in the named partition. If the $include-replicas
parameter is not specified
or is set to false
, replica forests are not included.
For details, see Tiered Storage in the Administrator's Guide.
Parameters | |
---|---|
database-id | ID of the database in containing the partition. |
partition-name | Name of the partition. |
include-replicas | Whether or not replicas will be included. |
const ts = require('/MarkLogic/tieredstorage'); ts.partitionForests(xdmp.database('Documents'), '2017-October').toArray();
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.