MarkLogic Server 11.0 Product Documentation
cts.reverseQueryNodes

cts.reverseQueryNodes(
   query as cts.reverseQuery
) as Sequence

Summary

Returns the nodes used to construct the specified query.

Parameters
query A query.

Example

const doc = xdmp.toJSON({prop: "hello"});
const query = cts.wordQuery("hello");
let obj = new Object();
obj.query = query;
const rev = cts.reverseQuery(doc);
cts.reverseQueryNodes(rev);

  => {"prop":"hello"}
Powered by MarkLogic Server | Terms of Use | Privacy Policy