search

ts_rank_cd

Uses cover density and positional proximity in relevance scoring; stripped lexemes lack the positions this method needs.

Formal Syntax & Structure

sql syntaxsql
ts_rank_cd([weights,] vector, query [, normalization])

Working Example

Example Snippetsql
SELECT ts_rank_cd(to_tsvector('simple','sql guide'), to_tsquery('simple','sql & guide')) > 0;
SQL Reference