MarkLogic 10 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))
Powered by MarkLogic Server | Terms of Use | Privacy Policy