Loading TOC...

cts.propertiesFragmentQuery

cts.propertiesFragmentQuery(
   $query as cts.query
) as cts.propertiesFragmentQuery

Summary

Returns a query that matches all documents where $query matches document-properties. When searching documents or document-locks, this query type provides a convenient way to additionally constrain the search against document-properties fragments.

Parameters
$query A query to be matched against the properties fragment.

Example

cts.search(
  cts.propertiesFragmentQuery(
    cts.elementRangeQuery(
        xs.QName('prop:last-modified'),'>',
        fn.currentDateTime() - xs.dayTimeDuration('P1D'))));

//  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

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy