<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.propertiesFragmentQuery.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.propertiesFragmentQuery</api:function-name><api:suggest>cts.propertiesfragmentquery</api:suggest><api:suggest>cts</api:suggest><api:suggest>propertiesfragmentquery</api:suggest><api:function-link mode="xquery" fullname="cts:properties-fragment-query">/apidoc/8.0/cts:properties-fragment-query.xml</api:function-link><api:function mode="javascript" name="propertiesFragmentQuery" 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.propertiesFragmentQuery"><api:summary>
  Returns a query that matches all documents where <code xmlns="http://www.w3.org/1999/xhtml">$query</code> matches
  document-properties.  When searching documents or document-locks,
  <code xmlns="http://www.w3.org/1999/xhtml">cts:properties-fragment-query</code> provides a convenient way to
  additionally constrain the search against document-properties fragments.
</api:summary><api:params><api:param name="query" type="cts:query"><api:param-description>
    A query to be matched against the properties fragment.
  </api:param-description><api:param-name>query</api:param-name><api:param-type>cts.query</api:param-type></api:param></api:params><api:return>cts.propertiesFragmentQuery</api:return><api:usage>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
cts:search(
  cts.propertiesFragmentQuery(
    cts.elementRangeQuery(
        xs.QName("prop:last-modified"),"&gt;",
        fn.currentDateTime() - xs.dayTimeDuration("P1D"))));

=&gt;  All documents modified up to one day in the past.
    Note that this example requires a dateTime range index on:
    namespace: http://marklogic.com/xdmp/property
    local name: last-modified
</pre></api:example></api:function></api:function-page>