MarkLogic Server 11.0 Product Documentation
cts:and-not-query-positive-query

cts:and-not-query-positive-query(
   $query as cts:and-not-query
) as cts:query

Summary

Returns the positive (first 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-positive-query($query)

  => cts:word-query("wanted", ("lang=en"), 1)
Powered by MarkLogic Server | Terms of Use | Privacy Policy