Reputation: 51
How do I find the creation date of a document in MarkLogic?
I was hoping to find something like xdmp:document-creation-date()
.
Upvotes: 4
Views: 813
Reputation: 11771
MarkLogic will maintain a last-modified timestamp if you enable it in the database options (I think it's enabled by default), but for creation date you would need to track that on your own. A common pattern is to store that value in an attribute or in a document property when the document is inserted.
Upvotes: 2