MarkLogic Server 11.0 Product Documentation
cts:document-query

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

Summary

Returns a query matching documents with the given URIs. It will match both documents and properties documents with the given URIs.

Parameters
uris One or more document URIs.

Example

  cts:search(//function,
    cts:document-query("/reports.xml"))

  => .. relevance-ordered sequence of 'function' elements
  in the document "/reports.xml".

Example

cts:search(//function, cts:and-query(("repair",
  cts:document-query(("/reports.xml", "/analysis.xml")))))

  => .. relevance ordered sequence of 'function' elements in
     any document that both contains the word "repair" and is
     in either the document "/reports.xml" or in the document
     "/analysis.xml".
Powered by MarkLogic Server | Terms of Use | Privacy Policy