Loading TOC...

MarkLogic Server 11.0 Product Documentation
cts:properties-fragment-query

cts:properties-fragment-query(
   $query as cts:query
) as cts:properties-fragment-query

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(
  fn:collection(),
  cts:properties-fragment-query(
    cts:element-range-query(
        xs:QName("prop:last-modified"),">;",
        current-dateTime() - 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 :)

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.