amutu / zhparser

zhparser is a PostgreSQL extension for full-text search of Chinese language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ts_headline查询结果中空格被去除了

rootgrandfather opened this issue · comments

在匹配的数据记录中,"blogs"."title"字段值为"计算机 网络"

执行sql语句中,highlight_title字段搜索配置如下:
ts_headline('zh'::regconfig, "blogs"."title", plainto_tsquery('zh'::regconfig, '计算机'), '') AS "highlight_title",

highlight_title字段:
期望返回:"计算机 网络"
实际返回:"计算机网络" (空格没有了)