Skip to main content
Legacy Docs: This page describes our legacy API. It will be deprecated in a future version. Please use the v2 API where possible.

Basic Usage

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