Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts:near-query-queries

cts:near-query-queries(
   $query as cts:near-query
) as cts:query*

Summary

Returns the query sequence used to construct the near query.

Parameters
query A query.

Example

  cts:near-query-queries($query)
  => ... a sequence of the queries used to
            construct this query

Example

let $query :=
  cts:near-query((
    cts:word-query("to be or"),
    cts:word-query("or not to be")))
return cts:near-query-queries($query)
  => (cts:word-query("to be or", (), 1)
         cts:word-query("or not to be", (), 1))

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