Does every document uploaded to Marklogic have document properties?

Today I received a strange conclusion from the MarkLogic query console. The ML query console returned an empty query sequence when I tried to get the document properties of a document that already exists in the MarkLogic database.

This returned the document:

 fn:doc("/rooturi/abcd.xml")

... and this time he returned an empty sequence:

 xdmp:document-properties("/rooturi/abcd.xml")

Can anybody help me?

Thank.

+4
source share
2 answers

No, documents do not have properties by default. You can add them with xdmp:document-set-properties()or xdmp:document-add-properties(). See http://docs.marklogic.com/ for more details .

, , " ".

+4
+1

All Articles