cts.boostQueryMatchingQuery( query as cts.boostQuery ) as cts.query
Returns the matching (first parameter) query used to construct the specified boost query.
Parameters | |
---|---|
query | A query. |
const query = cts.boostQuery( cts.wordQuery("wanted"), cts.wordQuery("unwanted")); cts.boostQueryMatchingQuery(query); => cts.wordQuery("wanted", ["lang=en"], 1)