Boosting
ParadeDB offers several ways to tune a document’s BM25 score. The first is boosting, which increases or decreases the impact of a specific query by multiplying its contribution to the overall BM25 score. To boost a query, cast the query to theboost type. In this example, the shoes query is weighted twice as heavily as the footwear query.
boost takes a numeric value, which is the multiplicative boost factor. It can be any floating point number between -2048 and 2048.
Query builder functions can also be boosted:
Constant Scoring
Constant scoring assigns the same score to all documents that match a query. To apply a constant score, cast the query to theconst type with a
numeric value.
For instance, the following query assigns a score of 1 to all documents matching the query shoes.