Loading TOC...

cts.documentFragmentQuery

cts.documentFragmentQuery(
   $query as cts.query
) as cts.documentFragmentQuery

Summary

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

Parameters
$query A query to be matched against any document fragment.

Usage Notes

A query that uses cts:document-fragment-query allows you to cross fragment boundaries in a cts:and-query, as shown in the second example below.

Example

cts:search(
  cts.documentFragmentQuery(
    cts.wordQuery("hello")));

=>  All documents that contain the word "hello".

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy