Loading TOC...

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.