<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.documentQuery.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.documentQuery</api:function-name><api:suggest>cts.documentquery</api:suggest><api:suggest>cts</api:suggest><api:suggest>documentquery</api:suggest><api:function-link mode="xquery" fullname="cts:document-query">/apidoc/8.0/cts:document-query.xml</api:function-link><api:function mode="javascript" name="documentQuery" type="builtin" lib="cts" category="SearchBuiltins" subcategory="cts:query Constructors" hidden="false" bucket="MarkLogic Built-In Functions" prefix="cts" namespace="http://marklogic.com/cts" fullname="cts.documentQuery"><api:summary>
  Returns a query matching documents with the given URIs.  It will match both
  documents and properties documents with the given URIs.
</api:summary><api:params><api:param name="uris" type="xs:string*"><api:param-description>
    One or more document URIs.
  </api:param-description><api:param-name>uris</api:param-name><api:param-type>String[]</api:param-type></api:param></api:params><api:return>cts.documentQuery</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
for (var x of cts.search(cts.documentQuery("/reports.xml"))) {
  x.xpath("//function"); };

  =&gt; .. a sequence of 'function' elements in the document "/reports.xml".
</pre></api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
cts.search(cts.andQuery(["repair",
  cts.documentQuery(["/reports.xml", "/analysis.xml"])]))

  =&gt; .. 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".
</pre></api:example></api:function></api:function-page>