Mark Logic
Posts  1 - 1  of  1
refi1
I am software test engineer.Currently In my new project I am working on Marklogic and i never worked before.
Using 2 separate MarkLogic Xqueries inorder to get expected result.
1. To get all documents by timestamp
for $x in xdmp:document-properties()//prop:last-modified
order by $x descending return {xdmp:node-uri($x)}"{$x}
2. To search the string in the document(which i got it from above query)
for $a in doc("/contentC:/MLDemo/DataFiles/1234.xml")/*//@System_Name where $a ="Exchange" return $a
Can someone plesae help me in combing these two individual scripts into one script. Thanks in advance.
Save
Cancel
Reply
 
x
OK