Recently, I have to use MarkLogic and there are some things I don't understand.
I don't want you to clarify all my concerns regarding MarkLogic just one :)
There is an XQuery and I don't understand what it does.
let $pap := cts:uris(
(), (),
cts:and-query((
cts:collection-query("/pageType/collection1"),
))
)
let $collection := ("/pageType/Attachment")
return
xdmp:estimate(
cts:search(
fn:doc(),
cts:and-query((
cts:collection-query(($collection)),
cts:document-query($pap)
))
)
)
I have huge problems to understand what the document-query function does.
Can somebody enlighten me, please? I am a beginner in MarkLogic who worked with relational databases before.
Thanks,
V.