Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp.documentSetMetadata

xdmp.documentSetMetadata(
   uri as String,
   metadata as Object
) as null

Summary

Sets metadata to the document. All existing metadata in the document will be replaced with the newly specified ones. Metadata values are strings. Non-string values are converted to strings.

Parameters
uri The document URI.
metadata Metadata in the key value pairs to set on the document.

Example

declareUpdate();
xdmp.documentSetMetadata(uri, {a:1})

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