<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.collectionReference.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.collectionReference</api:function-name><api:suggest>cts.collectionreference</api:suggest><api:suggest>cts</api:suggest><api:suggest>collectionreference</api:suggest><api:function-link mode="xquery" fullname="cts:collection-reference">/apidoc/8.0/cts:collection-reference.xml</api:function-link><api:function mode="javascript" name="collectionReference" type="builtin" lib="cts" category="SearchBuiltins" subcategory="Lexicon" hidden="false" bucket="MarkLogic Built-In Functions" prefix="cts" namespace="http://marklogic.com/cts" fullname="cts.collectionReference"><api:summary>
  Creates a reference to the collection lexicon, for use as a parameter to
  cts:value-tuples.  Since lexicons are implemented with range indexes,
  this function will throw an exception if the specified range index does
  not exist.
</api:summary><api:params><api:param name="options" type="xs:string*" optional="true"><api:param-description>
    Options.  The default is ().
    <p xmlns="http://www.w3.org/1999/xhtml">
      Options include:</p>
      <blockquote xmlns="http://www.w3.org/1999/xhtml"><dl>
        <dt>"nullable"</dt>
        <dd>Allow null values in tuples reported from cts:value-tuples when
        using this lexicon.</dd>
        <dt>"unchecked"</dt>
        <dd>Do not check the definition against the context database.</dd>
     </dl></blockquote>
  </api:param-description><api:param-name>options</api:param-name><api:param-type>String[]</api:param-type></api:param></api:params><api:return>cts.reference</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
cts.collectionReference();
=&gt;
cts.collectionReference([])
</pre></api:example></api:function></api:function-page>