
cts.andNotQueryPositiveQuery( query as cts.andNotQuery ) as cts.query
Returns the positive (first parameter) query used to construct the specified query.
| Parameters | |
|---|---|
| query | A query. |
const query = cts.andNotQuery(
cts.wordQuery("wanted"),
cts.wordQuery("unwanted"));
cts.andNotQueryPositiveQuery(query);
=> cts.wordQuery("wanted", ["lang=en"], 1)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.