Loading TOC...

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 (var 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".

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy