zhparser icon indicating copy to clipboard operation
zhparser copied to clipboard

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

Open rootgrandfather opened this issue 1 year ago • 0 comments

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

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

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

rootgrandfather avatar Apr 22 '23 10:04 rootgrandfather