↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 函数

ts_headline

以缩略形式显示query在document中的匹配项;后者必须是原始文本,不能是tsvector。在匹配查询之前,文档中的单词将根据指定的或默认配置进行正规化。第 12.3.4 节中讨论了该函数的使用,还描述了可用的options。

英文手册覆盖始于 PostgreSQL 7.1. 来源历史与运行验证各自保留独立版本边界。

当前阅读 PG 18·选择有来源记录的版本

group
textsearch
group label
Text Search Functions And Operators
lang
en
layout
table-new
pages
functions-textsearch.html
prose only
false
zh from
未知

版本定义 PG 18

以缩略形式显示query在document中的匹配项;后者必须是原始文本,不能是tsvector。在匹配查询之前,文档中的单词将根据指定的或默认配置进行正规化。第 12.3.4 节中讨论了该函数的使用,还描述了可用的options。
ts_headline ( [ config regconfig, ] document text, query tsquery [, options text ] ) → text
以缩略形式显示query在document中的匹配项;后者必须是原始文本,不能是tsvector。在匹配查询之前,文档中的单词将根据指定的或默认配置进行正规化。第 12.3.4 节中讨论了该函数的使用,还描述了可用的options。
ts_headline ( [ config regconfig, ] document json, query tsquery [, options text ] ) → text
以缩略形式显示query在 JSON document字符串值中的匹配项。更多细节请参见第 12.3.4 节。
ts_headline ( [ config regconfig, ] document jsonb, query tsquery [, options text ] ) → text
以缩略形式显示query在 JSON document字符串值中的匹配项。更多细节请参见第 12.3.4 节。

函数签名与重载

ts_headline ( [ config regconfig, ] document text, query tsquery [, options text ] ) → text → text
以缩略形式显示query在document中的匹配项;后者必须是原始文本,不能是tsvector。在匹配查询之前,文档中的单词将根据指定的或默认配置进行正规化。第 12.3.4 节中讨论了该函数的使用,还描述了可用的options。
ts_headline ( [ config regconfig, ] document json, query tsquery [, options text ] ) → text → text
以缩略形式显示query在 JSON document字符串值中的匹配项。更多细节请参见第 12.3.4 节。
ts_headline ( [ config regconfig, ] document jsonb, query tsquery [, options text ] ) → text → text
以缩略形式显示query在 JSON document字符串值中的匹配项。更多细节请参见第 12.3.4 节。

比较版本

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · b7bd9cda

正文语言: zh-Hans · 1b5ca64c