What are the steps to UPDATE the properties in a document in MarkLogic? Can anyone please do the needful.
I have tried the below code:
xquery version "1.0-ml";
import module namespace dls = "http://marklogic.com/xdmp/dls" at "/MarkLogic/dls.xqy";
dls:document-set-properties(
"/Test/A.pdf",
(<Product>1</Product>)
)
This throws an error stating the document is not managed. Please advice.