setweight()

A function for assigning a weight to each element of a vector

setweight() is a system function  for assigning a specfied weight to each element of a vector.

setweight() was added in PostgreSQL 9.6.

Usage

setweight ( vector tsvector, weight "char" ) → tsvector
setweight ( vector tsvector, weight "char", lexemes text[] ) → tsvector

Change history

Categories

Full Text Search, System function

See also

strip()