Loading TOC...

MarkLogic 10 Product Documentation
cts.query

cts.query(
   query as Node
) as cts.query

Summary

Creates a query.

Parameters
query A query.

Example

cts.query(fn.head(xdmp.unquote(
  '<cts:word-query xmlns:cts="http://marklogic.com/cts">'
  +'  <cts:text>word</cts:text>'
  +'</cts:word-query>')).root)
=>
cts.wordQuery("word", ["lang=en"], 1)

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