Loading TOC...
Matches for cat:function/xquery (cat:function/xquery (cat:function/xquery (cat:function/xquery (cat:function (cat:function/xquery (cts:words)))))) have been highlighted. remove

MarkLogic Server 11.0 Product Documentation
cts:not-in-query-negative-query

cts:not-in-query-negative-query(
   $query as cts:not-in-query
) as cts:query

Summary

Returns the negative (second parameter) query used to construct the specified query.

Parameters
query A query.

Example

let $query := cts:not-in-query(
                 cts:word-query("wanted"),
                 cts:word-query("not wanted"))
return cts:not-in-query-negative-query($query)

  => cts:word-query("not wanted", (), 1)

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