MarkLogic 12 EA 1 Product Documentation
xdmp.collectionProperties

xdmp.collectionProperties(
   [uri as String[]]
) as Sequence

Summary

Returns a sequence of properties documents, one for each document in the specified collection(s) that has a corresponding properties document.

Parameters
uri The URI(s) of the collection(s).

Example

for (var d of xdmp.collectionProperties(
                   ["http://example.com/col1/",
                    "http://example.com/col2/"])) {
  if ( d.root.xpath("/property::cpf:error",
                    {"cpf": "http://marklogic.com/cpf"}) ) {
    xdmp.nodeUri(d);
  };
};

  => A list of document URIs of documents that have a
     cpf:error property in their corresponding properties
     documents.  For example:

     http://example.com/bar.xml http://example.com/baz.xml
Powered by MarkLogic Server | Terms of Use | Privacy Policy