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