Loading TOC...

MarkLogic 12 EA 1 Product Documentation
cts:reverse-query-nodes

cts:reverse-query-nodes(
   $query as cts:reverse-query
) as node()*

Summary

Returns the nodes used to construct the specified query.

Parameters
query A query.

Example

let $query := <query>{cts:word-query("hello")}</query>
let $x := <bar>hello</bar>
let $rev := cts:reverse-query($x)
return cts:reverse-query-nodes($rev)

  => <bar>hello</bar>

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