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".
Powered by MarkLogic Server | Terms of Use | Privacy Policy