Loading TOC...

cts.nearQueryQueries

cts.nearQueryQueries(
   $query as cts.nearQuery
) as ValueIterator

Summary

Returns the query sequence used to construct the near query.

Parameters
$query A query.

Example

  cts.nearQueryQueries(query)
  => ... a ValueIterator of the queries used to
            construct this query

Example

var query =
  cts.nearQuery([
    cts.wordQuery("to be or"),
    cts.wordQuery("or not to be")]);
var res = new Array();
for (var x of cts.nearQueryQueries(query)) {
  res.push(x);
};
res;

=> [{"wordQuery":{"text":["to be or"],"options":["lang=en"]}},
    {"wordQuery":{"text":["or not to be"],"options":["lang=en"]}}]

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy