PostgreSQL · Type Alias
tsvector
PostgreSQL full-text search uses tsvector for searchable documents and tsquery for search expressions. Convert raw text with the parsing functions, then use @@ to test for matches.
Last updated
Syntax
to_tsvector([ config regconfig, ] document text) returns tsvector; to_tsquery([ config regconfig, ] querytext text) returns tsquery; tsvector @@ tsqueryIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
tsqueryto_tsvectorto_tsqueryplainto_tsqueryphraseto_tsquerywebsearch_to_tsquerysetweightts_rank