↑↓ 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, using a cover density algorithm.

Reading PG 18current·documented in 20 of 27 versions, 8.3 to 20

Signatures & examples

ts_rank_cd ( [ weights real[], ] vector tsvector, query tsquery [, normalization integer ] ) → real
Computes a score showing how well the vector matches the query, using a cover density algorithm. See Section 12.3.3 for details.
ts_rank_cd(to_tsvector('raining cats and dogs'), 'cat') → 0.1
Version history 2
  1. 12 → 13 changed
  2. 8.2 → 8.3 added

Definition snapshot: b7bd9cda · English manual source