Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rootgrandfather opened this issue Apr 22, 2023 · 0 comments
Open

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

rootgrandfather opened this issue Apr 22, 2023 · 0 comments

Comments

@rootgrandfather
Copy link

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant