Loading TOC...

cts:boost-query-matching-query

cts:boost-query-matching-query(
   $query as cts:boost-query
) as cts:query

Summary

Returns the matching (first parameter) query used to construct the specified boost query.

Parameters
$query A query.

Example

let $query := cts:boost-query(
                cts:word-query("wanted"),
                cts:word-query("unwanted"))
return cts:boost-query-matching-query($query)

  => cts:word-query("wanted", (), 1)

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