Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts.documentQuery

cts.documentQuery(
   uris as String[]
) as cts.documentQuery

Summary

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.

Example

for (const x of cts.search(cts.documentQuery("/reports.xml"))) {
  x.xpath("//function"); };

  => .. a sequence of 'function' elements in the document "/reports.xml".

Example

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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.