MarkLogic 12 EA 1 Product Documentation
cts:collection-query

cts:collection-query(
   $uris as xs:string*
) as cts:collection-query

Summary

Match documents in at least one of the specified collections. It will match both documents and properties documents in the collections with the given URIs.

Parameters
uris One or more collection URIs. A document matches the query if it is in at least one of these collections.

Example

  cts:search(//function,
    cts:collection-query(("reports", "analysis")))

  => .. a sequence of 'function' elements in any document in the
     collection "reports" or in the collection "analysis".
Powered by MarkLogic Server | Terms of Use | Privacy Policy