A boost query wraps around another query to amplify its scoring impact, without altering the set of matched documents.
SELECT description, rating, category, paradedb.score(id) FROM mock_items WHERE id @@@ paradedb.boolean( should => ARRAY[ paradedb.term('description', 'shoes'), paradedb.boost(2.0, paradedb.term('description', 'running')) ] );
The factor by which to multiply the score of each result.
The query to perform.
Was this page helpful?