Loading TOC...

MarkLogic 10 Product Documentation
cts.andNotQueryNegativeQuery

cts.andNotQueryNegativeQuery(
   query as cts.andNotQuery
) as cts.query

Summary

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

Parameters
query A query.

Example

const query = cts.andNotQuery(
                 cts.wordQuery("wanted"),
                 cts.wordQuery("unwanted"));
cts.andNotQueryNegativeQuery(query);

  => cts.wordQuery("unwanted", ["lang=en"], 1)

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