Puneet Pant
Puneet Pant

Reputation: 948

How to get author name and last updated date of documents?

How can I get author name and last updated date of the documents uploaded in Marklogic Server ?

Upvotes: 2

Views: 260

Answers (1)

Eric Bloch
Eric Bloch

Reputation: 2961

Unless you've turned off the maintenance of the last-modified property, you can find it on the document's property fragment (you can browse these via Explore mode in query console).

In the future, last-modified maintenance may be off by default, fyi.

I'm not aware of any notion of user account associated with the last modification that is maintained. You'd need to add and maintain that metadata yourself via a trigger or CPF or some other mechanism.

Upvotes: 3

Related Questions