<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.collectionQuery.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.collectionQuery</api:function-name><api:suggest>cts.collectionquery</api:suggest><api:suggest>cts</api:suggest><api:suggest>collectionquery</api:suggest><api:function-link mode="xquery" fullname="cts:collection-query">/apidoc/8.0/cts:collection-query.xml</api:function-link><api:function mode="javascript" name="collectionQuery" 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.collectionQuery"><api:summary>
  Returns a query matching documents in the collections with the given URIs.
  It will match both documents and properties documents in the collections
  with the given URIs.
</api:summary><api:params><api:param name="uris" type="xs:string*"><api:param-description>
    One or more collection 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.collectionQuery</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
cts.search(cts.andQuery([cts.wordQuery("repair"),
    cts.collectionQuery(["reports", "analysis"])]));

  =&gt; .. relevance ordered sequence of documents that both
     contains the word "repair" and is in either the
     collection "reports" or in the collection "analysis".
</pre></api:example></api:function></api:function-page>