Loading TOC...

cts.boostQueryBoostingQuery

cts.boostQueryBoostingQuery(
   $query as cts.boostQuery
) as cts.query

Summary

Returns the boosting (second parameter) query used to construct the specified boost query.

Parameters
$query A query.

Example

const query = cts.boostQuery(
                cts.wordQuery("wanted"),
                cts.wordQuery("unwanted"));
cts.boostQueryBoostingQuery(query);

  => cts.wordQuery("unwanted", ["lang=en"], 1)

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.