select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

FUNCTIONS / TEXT SEARCH FUNCTIONS AND OPERATORS

Computes a score showing how well the vector matches the query.

Signatures & examples

ts_rank ( [ weights real[], ] vector tsvector, query tsquery [, normalization integer ] ) → real
Computes a score showing how well the vector matches the query. See Section 12.3.3 for details.
ts_rank(to_tsvector('raining cats and dogs'), 'cat') → 0.06079271
Version history 1
  1. PG 12 → 13changed

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source