数据仓库服务 GAUSSDB(DWS)-文本检索函数:setweight(tsvector, "char")

时间:2024-10-21 16:50:41

setweight(tsvector, "char")

描述:给tsvector类型的每个元素分配权值。

返回类型:tsvector

示例:

1
2
3
4
5
SELECT setweight('fat:2,4 cat:3 rat:5B'::tsvector, 'A');
           setweight           
-------------------------------
 'cat':3A 'fat':2A,4A 'rat':5A
(1 row)
support.huaweicloud.com/sqlreference-830-dws/dws_06_0320.html