Loading TOC...

MarkLogic 9 Product Documentation
cts.andQueryQueries

cts.andQueryQueries(
   query as cts.andQuery
) as Sequence

Summary

Returns a sequence of the queries that were used to construct the specified query.

Parameters
query A query.

Example

  cts.andQueryQueries(query);
  => ... a Sequence of the queries used to
            construct this query

Example

const query = cts.andQuery([
    cts.wordQuery("to be or"),
    cts.wordQuery("or not to be")]);
cts.andQueryQueries(query);
  => Sequence(
       cts.wordQuery("to be or", ["lang=en"], 1),
       cts.wordQuery("to be or", ["lang=en"], 1))

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