Loading TOC...

cts.locksFragmentQuery

cts.locksFragmentQuery(
   $query as cts.query
) as cts.locksFragmentQuery

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(
    cts.locksFragmentQuery(cts.wordQuery("12345")));

=>  All documents that have locks containg the word 12345.

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

Comments