<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.lsqtQuery.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.lsqtQuery</api:function-name><api:suggest>cts.lsqtquery</api:suggest><api:suggest>cts</api:suggest><api:suggest>lsqtquery</api:suggest><api:function-link mode="xquery" fullname="cts:lsqt-query">/apidoc/8.0/cts:lsqt-query.xml</api:function-link><api:function mode="javascript" name="lsqtQuery" 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.lsqtQuery"><api:summary>
Returns only documents before LSQT or a timestamp before LSQT for
stable query results.
</api:summary><api:params><api:param name="temporal-collection" type="xs:string"><api:param-description>
    The name of the temporal collection.
  </api:param-description><api:param-name>temporal-collection</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="timestamp" type="xs:dateTime?" optional="true"><api:param-description>
   Return only temporal documents with a system start time less than or equal
   to this value.
   Default is <code xmlns="http://www.w3.org/1999/xhtml">temporal:get-lsqt($temporal-collection)</code>.
   Timestamps larger than LSQT are rejected.
  </api:param-description><api:param-name>timestamp</api:param-name><api:param-type>Date?</api:param-type></api:param><api:param name="options" type="xs:string*" optional="true"><api:param-description>
    Options to this query.  The default is ().
    <p xmlns="http://www.w3.org/1999/xhtml">
      Options include:</p>
      <blockquote xmlns="http://www.w3.org/1999/xhtml"><dl>
        <dt>"cached"</dt>
        <dd>Cache the results of this query in the list cache.</dd>
        <dt>"uncached"</dt>
        <dd>Do not cache the results of this query in the list cache.</dd>
        <dt>"cached-incremental"</dt>
        <dd>Break down the query into sub-queries and then cache each
        one of them for better performance. This is enabled, by default.</dd>
        <dt>"score-function=<em>function</em>"</dt>
        <dd>Use the selected scoring function. The score function may be:
          <dl>
          <dt>linear</dt><dd>Use a linear function of the difference between the
          specified query value and the matching value in the index to calculate
          a score for this range query.</dd>
          <dt>reciprocal</dt><dd>Use a reciprocal function of the difference
          between the specified query value and the matching value in the
          index to calculate a score for this range query.</dd>
          <dt>zero</dt><dd>This range query does not contribute to the
          score. This is the default.</dd>
          </dl>
        </dd>
        <dt>"slope-factor=<em>number</em>"</dt>
        <dd>Apply the given number as a scaling factor to the slope of the
        scoring function. The default is 1.0.</dd>
      </dl></blockquote>
  </api:param-description><api:param-name>options</api:param-name><api:param-type>String[]</api:param-type></api:param><api:param name="weight" type="xs:double?" optional="true"><api:param-description>
    A weight for this query.
    Higher weights move search results up in the relevance
    order.  The default is 1.0. The
    weight should be between 64 and -16.
    Weights greater than 64 will have the same effect as a
    weight of 64.
    Weights less than the absolute value of 0.0625 (between -0.0625 and
    0.0625) are rounded to 0, which means that they do not contribute to the
    score.
  </api:param-description><api:param-name>weight</api:param-name><api:param-type>Number?</api:param-type></api:param></api:params><api:return>cts.lsqtQuery</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  cts.lsqtQuery("temporal", null, "cached-incremental", xs.double("3.13"));
</pre></api:example></api:function></api:function-page>