MarkLogic 9 Product Documentation
xdmp.documentGetMetadataValue

xdmp.documentGetMetadataValue(
   uri as String,
   keyName as String
) as String?

Summary

Returns the metadata value of a given document.

Parameters
uri The document URI.
keyName Name of the key for the metadata.

Example

xdmp.documentGetMetadataValue("doc.json", "temporalProtectExTime")
=> Metadata of key "temporalProtectExTime" on doc.json
Powered by MarkLogic Server | Terms of Use | Privacy Policy