Loading TOC...

MarkLogic 10 Product Documentation
cts:and-not-query-negative-query

cts:and-not-query-negative-query(
   $query as cts:and-not-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:and-not-query(
                 cts:word-query("wanted"),
                 cts:word-query("unwanted"))
return cts:and-not-query-negative-query($query)

  => cts:word-query("unwanted", ("lang=en"), 1)

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