cts.documentQuery( uris as String[] ) as cts.documentQuery
Returns a query matching documents with the given URIs. It will match both documents and properties documents with the given URIs.
Parameters | |
---|---|
uris | One or more document URIs. |
for (const x of cts.search(cts.documentQuery("/reports.xml"))) { x.xpath("//function"); }; => .. a sequence of 'function' elements in the document "/reports.xml".
cts.search(cts.andQuery(["repair", cts.documentQuery(["/reports.xml", "/analysis.xml"])])) => .. relevance ordered sequence of documents that both contains the word "repair" and is in either the document "/reports.xml" or in the document "/analysis.xml".
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.