MarkLogic 12 EA 1 Product Documentation
cts:locks-fragment-query

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

Summary

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

Parameters
query A query to be matched against the locks fragment.

Example

cts:search(
  fn:collection(),
    cts:locks-fragment-query(cts:word-query("12345")))

=>  All documents that have locks containing the word 12345.
Powered by MarkLogic Server | Terms of Use | Privacy Policy